Class: Chloe::Modules::Vagrant::Task

Inherits:
Thor
  • Object
show all
Defined in:
lib/chloe/modules/vagrant.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.summaryObject



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

#destroyObject



24
25
26
# File 'lib/chloe/modules/vagrant.rb', line 24

def destroy
  exec 'vagrant', 'destroy'
end

#haltObject



29
30
31
# File 'lib/chloe/modules/vagrant.rb', line 29

def halt
  exec 'vagrant', 'halt'
end

#provisionObject



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

#reloadObject



34
35
36
# File 'lib/chloe/modules/vagrant.rb', line 34

def reload
  exec 'vagrant', 'reload'
end

#resumeObject



39
40
41
# File 'lib/chloe/modules/vagrant.rb', line 39

def resume
  exec 'vagrant', 'resume'
end

#sshObject



49
50
51
# File 'lib/chloe/modules/vagrant.rb', line 49

def ssh
  exec 'vagrant', 'ssh'
end

#statusObject



19
20
21
# File 'lib/chloe/modules/vagrant.rb', line 19

def status
  exec 'vagrant', 'status'
end

#suspendObject



44
45
46
# File 'lib/chloe/modules/vagrant.rb', line 44

def suspend
  exec 'vagrant', 'suspend'
end

#upObject



14
15
16
# File 'lib/chloe/modules/vagrant.rb', line 14

def up
  exec 'vagrant', 'up'
end