jamie-vagrant 0.2.1 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- data/.travis.yml +6 -0
- data/Rakefile +7 -1
- data/jamie-vagrant.gemspec +1 -0
- data/lib/jamie/driver/vagrant.rb +7 -6
- data/lib/jamie/driver/vagrant_version.rb +1 -1
- data/lib/jamie/vagrant.rb +2 -0
- metadata +20 -4
data/.travis.yml
CHANGED
data/Rakefile
CHANGED
data/jamie-vagrant.gemspec
CHANGED
data/lib/jamie/driver/vagrant.rb
CHANGED
@@ -23,11 +23,18 @@ module Jamie
|
|
23
23
|
module Driver
|
24
24
|
|
25
25
|
# Vagrant driver for Jamie. It communicates to Vagrant via the CLI.
|
26
|
+
#
|
27
|
+
# @author Fletcher Nichol <fnichol@nichol.ca>
|
26
28
|
class Vagrant < Jamie::Driver::SSHBase
|
27
29
|
|
28
30
|
default_config 'memory', '256'
|
29
31
|
|
30
32
|
def create(instance, state)
|
33
|
+
# @todo Vagrantfile setup will be placed in any dependency hook
|
34
|
+
# checks when feature is released
|
35
|
+
vagrantfile = File.join(config['jamie_root'], "Vagrantfile")
|
36
|
+
create_vagrantfile(vagrantfile) unless File.exists?(vagrantfile)
|
37
|
+
|
31
38
|
state['hostname'] = instance.name
|
32
39
|
run_command "vagrant up #{state['hostname']} --no-provision"
|
33
40
|
end
|
@@ -45,12 +52,6 @@ module Jamie
|
|
45
52
|
|
46
53
|
protected
|
47
54
|
|
48
|
-
def load_state(instance)
|
49
|
-
vagrantfile = File.join(config['jamie_root'], "Vagrantfile")
|
50
|
-
create_vagrantfile(vagrantfile) unless File.exists?(vagrantfile)
|
51
|
-
super
|
52
|
-
end
|
53
|
-
|
54
55
|
def ssh(ssh_args, cmd)
|
55
56
|
run_command %{vagrant ssh #{ssh_args.first} --command '#{cmd}'}
|
56
57
|
end
|
data/lib/jamie/vagrant.rb
CHANGED
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.
|
4
|
+
version: 0.2.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-12-
|
12
|
+
date: 2012-12-30 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: jamie
|
@@ -75,6 +75,22 @@ dependencies:
|
|
75
75
|
- - ! '>='
|
76
76
|
- !ruby/object:Gem::Version
|
77
77
|
version: '0'
|
78
|
+
- !ruby/object:Gem::Dependency
|
79
|
+
name: countloc
|
80
|
+
requirement: !ruby/object:Gem::Requirement
|
81
|
+
none: false
|
82
|
+
requirements:
|
83
|
+
- - ! '>='
|
84
|
+
- !ruby/object:Gem::Version
|
85
|
+
version: '0'
|
86
|
+
type: :development
|
87
|
+
prerelease: false
|
88
|
+
version_requirements: !ruby/object:Gem::Requirement
|
89
|
+
none: false
|
90
|
+
requirements:
|
91
|
+
- - ! '>='
|
92
|
+
- !ruby/object:Gem::Version
|
93
|
+
version: '0'
|
78
94
|
description: Jamie::Driver::Vagrant - A Vagrant Driver for Jamie.
|
79
95
|
email:
|
80
96
|
- fnichol@nichol.ca
|
@@ -106,7 +122,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
106
122
|
version: '0'
|
107
123
|
segments:
|
108
124
|
- 0
|
109
|
-
hash:
|
125
|
+
hash: 287715437133563140
|
110
126
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
111
127
|
none: false
|
112
128
|
requirements:
|
@@ -115,7 +131,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
115
131
|
version: '0'
|
116
132
|
segments:
|
117
133
|
- 0
|
118
|
-
hash:
|
134
|
+
hash: 287715437133563140
|
119
135
|
requirements: []
|
120
136
|
rubyforge_project:
|
121
137
|
rubygems_version: 1.8.24
|