Class: ServerTools::CLI
- Inherits:
-
Thor
- Object
- Thor
- ServerTools::CLI
- Includes:
- ShellOut
- Defined in:
- lib/server_tools/cli.rb
Instance Method Summary collapse
Methods included from ShellOut
Instance Method Details
#bootstrap(hostname) ⇒ Object
27 28 29 |
# File 'lib/server_tools/cli.rb', line 27 def bootstrap(hostname) shell_out(ServerTools::Bootstrap.new(hostname, ).command) end |
#install_deb_package(hostname) ⇒ Object
57 58 59 60 61 |
# File 'lib/server_tools/cli.rb', line 57 def install_deb_package(hostname) install_deb_package = ServerTools::InstallDebPackage.new(hostname, ) shell_out(install_deb_package.copy_command) shell_out(install_deb_package.install_command) end |
#provision(hostname) ⇒ Object
36 37 38 |
# File 'lib/server_tools/cli.rb', line 36 def provision(hostname) shell_out(ServerTools::Provision.new(hostname, ).command) end |