Class: Avm::EacUbuntuBase0::Instances::Base

Inherits:
Instances::Base
  • Object
show all
Defined in:
lib/avm/eac_ubuntu_base0/instances/base.rb

Instance Method Summary collapse

Instance Method Details

#apacheAvm::EacUbuntuBase0::Apache



12
13
14
# File 'lib/avm/eac_ubuntu_base0/instances/base.rb', line 12

def apache
  ::Avm::EacUbuntuBase0::Apache.new(host_env)
end

#docker_image_classObject



16
17
18
# File 'lib/avm/eac_ubuntu_base0/instances/base.rb', line 16

def docker_image_class
  ::Avm::EacUbuntuBase0::DockerImage
end

#file_sudo_write(path, content) ⇒ Object



20
21
22
23
24
# File 'lib/avm/eac_ubuntu_base0/instances/base.rb', line 20

def file_sudo_write(path, content)
  ::EacRubyUtils::Envs.local.command('echo', content).pipe(
    host_env.command('sudo', 'tee', path)
  ).execute!
end