Class: Chloe::Modules::Vagrant::Task
- Inherits:
-
Thor
- Object
- Thor
- Chloe::Modules::Vagrant::Task
- Defined in:
- lib/chloe/modules/vagrant.rb
Class Method Summary collapse
Instance Method Summary collapse
- #destroy ⇒ Object
- #halt ⇒ Object
- #provision ⇒ Object
- #reload ⇒ Object
- #resume ⇒ Object
- #ssh ⇒ Object
- #status ⇒ Object
- #suspend ⇒ Object
- #up ⇒ Object
Class Method Details
.summary ⇒ Object
9 10 11 |
# File 'lib/chloe/modules/vagrant.rb', line 9 def self.summary 'Controls the VM, proxying tasks to Vagrant' end |
Instance Method Details
#destroy ⇒ Object
24 25 26 |
# File 'lib/chloe/modules/vagrant.rb', line 24 def destroy exec 'vagrant', 'destroy' end |
#halt ⇒ Object
29 30 31 |
# File 'lib/chloe/modules/vagrant.rb', line 29 def halt exec 'vagrant', 'halt' end |
#provision ⇒ Object
54 55 56 57 |
# File 'lib/chloe/modules/vagrant.rb', line 54 def provision system 'librarian-chef update --verbose | grep Installing' exec 'vagrant', 'provision' end |
#reload ⇒ Object
34 35 36 |
# File 'lib/chloe/modules/vagrant.rb', line 34 def reload exec 'vagrant', 'reload' end |
#resume ⇒ Object
39 40 41 |
# File 'lib/chloe/modules/vagrant.rb', line 39 def resume exec 'vagrant', 'resume' end |
#ssh ⇒ Object
49 50 51 |
# File 'lib/chloe/modules/vagrant.rb', line 49 def ssh exec 'vagrant', 'ssh' end |
#status ⇒ Object
19 20 21 |
# File 'lib/chloe/modules/vagrant.rb', line 19 def status exec 'vagrant', 'status' end |
#suspend ⇒ Object
44 45 46 |
# File 'lib/chloe/modules/vagrant.rb', line 44 def suspend exec 'vagrant', 'suspend' end |
#up ⇒ Object
14 15 16 |
# File 'lib/chloe/modules/vagrant.rb', line 14 def up exec 'vagrant', 'up' end |