jamie-vagrant 0.2.0 → 0.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -28,19 +28,19 @@ module Jamie
28
28
  default_config 'memory', '256'
29
29
 
30
30
  def create(instance, state)
31
- state['vagrant_vm'] = instance.name
32
- run_command "vagrant up #{state['vagrant_vm']} --no-provision"
31
+ state['hostname'] = instance.name
32
+ run_command "vagrant up #{state['hostname']} --no-provision"
33
33
  end
34
34
 
35
35
  def converge(instance, state)
36
- run_command "vagrant provision #{state['vagrant_vm']}"
36
+ run_command "vagrant provision #{state['hostname']}"
37
37
  end
38
38
 
39
39
  def destroy(instance, state)
40
- return if state['vagrant_vm'].nil?
40
+ return if state['hostname'].nil?
41
41
 
42
- run_command "vagrant destroy #{state['vagrant_vm']} -f"
43
- state.delete('vagrant_vm')
42
+ run_command "vagrant destroy #{state['hostname']} -f"
43
+ state.delete('hostname')
44
44
  end
45
45
 
46
46
  protected
@@ -51,10 +51,6 @@ module Jamie
51
51
  super
52
52
  end
53
53
 
54
- def generate_ssh_args(state)
55
- Array(state['vagrant_vm'])
56
- end
57
-
58
54
  def ssh(ssh_args, cmd)
59
55
  run_command %{vagrant ssh #{ssh_args.first} --command '#{cmd}'}
60
56
  end
@@ -21,6 +21,6 @@ module Jamie
21
21
  module Driver
22
22
 
23
23
  # Version string for Vagrant Jamie driver
24
- VAGRANT_VERSION = "0.2.0"
24
+ VAGRANT_VERSION = "0.2.1"
25
25
  end
26
26
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jamie-vagrant
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -106,7 +106,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
106
106
  version: '0'
107
107
  segments:
108
108
  - 0
109
- hash: -2965995518984250784
109
+ hash: 1283909686719329279
110
110
  required_rubygems_version: !ruby/object:Gem::Requirement
111
111
  none: false
112
112
  requirements:
@@ -115,7 +115,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
115
115
  version: '0'
116
116
  segments:
117
117
  - 0
118
- hash: -2965995518984250784
118
+ hash: 1283909686719329279
119
119
  requirements: []
120
120
  rubyforge_project:
121
121
  rubygems_version: 1.8.24