Class: Avm::EacUbuntuBase0::Instances::Base
- Inherits:
-
Instances::Base
- Object
- Instances::Base
- Avm::EacUbuntuBase0::Instances::Base
- Defined in:
- lib/avm/eac_ubuntu_base0/instances/base.rb
Instance Method Summary collapse
- #apache ⇒ Avm::EacUbuntuBase0::Apache
- #docker_image_class ⇒ Object
- #file_sudo_write(path, content) ⇒ Object
Instance Method Details
#apache ⇒ Avm::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_class ⇒ Object
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 |