Class: SmartMachine::Commands::Buildpacker
- Inherits:
-
Thor
- Object
- Thor
- SmartMachine::Commands::Buildpacker
- Includes:
- Utilities
- Defined in:
- lib/smart_machine/commands/buildpacker.rb
Instance Method Summary collapse
- #install(packname) ⇒ Object
- #installer(packname) ⇒ Object
- #packer(packname) ⇒ Object
- #uninstall(packname) ⇒ Object
- #uninstaller(packname) ⇒ Object
Instance Method Details
#install(packname) ⇒ Object
7 8 9 10 11 12 13 14 15 16 |
# File 'lib/smart_machine/commands/buildpacker.rb', line 7 def install(packname) inside_machine_dir do with_docker_running do puts "-----> Installing Buildpacker" machine = SmartMachine::Machine.new machine.run_on_machine commands: "smartengine buildpacker installer #{packname}" puts "-----> Buildpacker Installation Complete" end end end |
#installer(packname) ⇒ Object
31 32 33 34 35 36 |
# File 'lib/smart_machine/commands/buildpacker.rb', line 31 def installer(packname) inside_engine_machine_dir do buildpacker = SmartMachine::Buildpackers::Buildpacker.new(packname: packname) buildpacker.installer end end |
#packer(packname) ⇒ Object
47 48 49 50 |
# File 'lib/smart_machine/commands/buildpacker.rb', line 47 def packer(packname) buildpacker = SmartMachine::Buildpackers::Buildpacker.new(packname: packname) buildpacker.packer end |
#uninstall(packname) ⇒ Object
19 20 21 22 23 24 25 26 27 28 |
# File 'lib/smart_machine/commands/buildpacker.rb', line 19 def uninstall(packname) inside_machine_dir do with_docker_running do puts "-----> Uninstalling Buildpacker" machine = SmartMachine::Machine.new machine.run_on_machine commands: "smartengine buildpacker uninstaller #{packname}" puts "-----> Buildpacker Uninstallation Complete" end end end |
#uninstaller(packname) ⇒ Object
39 40 41 42 43 44 |
# File 'lib/smart_machine/commands/buildpacker.rb', line 39 def uninstaller(packname) inside_engine_machine_dir do buildpacker = SmartMachine::Buildpackers::Buildpacker.new(packname: packname) buildpacker.uninstaller end end |