daptiv-chef-ci 0.0.10 → 0.0.11
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.
data/daptiv-chef-ci.gemspec
CHANGED
@@ -43,7 +43,7 @@ Gem::Specification.new do |gem|
|
|
43
43
|
gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
|
44
44
|
gem.name = "daptiv-chef-ci"
|
45
45
|
gem.require_paths = ["lib"]
|
46
|
-
gem.version = '0.0.
|
46
|
+
gem.version = '0.0.11'
|
47
47
|
|
48
48
|
gem.add_runtime_dependency "log4r", "~> 1.1.10"
|
49
49
|
gem.add_runtime_dependency "mixlib-shellout", "~> 1.2.0"
|
@@ -26,7 +26,6 @@ class VagrantDestroy
|
|
26
26
|
def initialize(name = 'vagrant_destroy', desc = 'Vagrant destroy task')
|
27
27
|
@name, @desc = name, desc
|
28
28
|
@destroy_timeout_in_seconds = 180
|
29
|
-
@vagrant_driver = DaptivChefCI::VagrantDriver.new()
|
30
29
|
yield self if block_given?
|
31
30
|
define_task
|
32
31
|
end
|
@@ -36,9 +35,13 @@ class VagrantDestroy
|
|
36
35
|
def define_task
|
37
36
|
desc @desc
|
38
37
|
task @name do
|
39
|
-
execute {
|
38
|
+
execute { vagrant_driver.destroy({ :cmd_timeout_in_seconds => @destroy_timeout_in_seconds }) }
|
40
39
|
end
|
41
40
|
end
|
41
|
+
|
42
|
+
def vagrant_driver()
|
43
|
+
@vagrant_driver ||= DaptivChefCI::VagrantDriver.new()
|
44
|
+
end
|
42
45
|
|
43
46
|
end
|
44
47
|
end
|
@@ -30,7 +30,6 @@ class VagrantProvision
|
|
30
30
|
@name, @desc = name, desc
|
31
31
|
@provision_timeout_in_seconds = 7200
|
32
32
|
@environment = {}
|
33
|
-
@vagrant_driver = DaptivChefCI::VagrantDriver.new()
|
34
33
|
yield self if block_given?
|
35
34
|
define_task
|
36
35
|
end
|
@@ -41,7 +40,7 @@ class VagrantProvision
|
|
41
40
|
desc @desc
|
42
41
|
task @name do
|
43
42
|
execute {
|
44
|
-
|
43
|
+
vagrant_driver.provision({
|
45
44
|
:cmd_timeout_in_seconds => @provision_timeout_in_seconds,
|
46
45
|
:environment => @environment
|
47
46
|
})
|
@@ -49,6 +48,10 @@ class VagrantProvision
|
|
49
48
|
end
|
50
49
|
end
|
51
50
|
|
51
|
+
def vagrant_driver()
|
52
|
+
@vagrant_driver ||= DaptivChefCI::VagrantDriver.new()
|
53
|
+
end
|
54
|
+
|
52
55
|
end
|
53
56
|
end
|
54
57
|
|
@@ -49,7 +49,6 @@ class Vagrant
|
|
49
49
|
@destroy_retry_attempts = 2
|
50
50
|
@halt_retry_attempts = 2
|
51
51
|
@environment = {}
|
52
|
-
@vagrant_driver = DaptivChefCI::VagrantDriver.new(@provider)
|
53
52
|
yield self if block_given?
|
54
53
|
define_task
|
55
54
|
end
|
@@ -82,22 +81,26 @@ class Vagrant
|
|
82
81
|
end
|
83
82
|
|
84
83
|
def up()
|
85
|
-
|
84
|
+
vagrant_driver.up({
|
86
85
|
:cmd_timeout_in_seconds => @up_timeout_in_seconds,
|
87
86
|
:environment => @environment
|
88
87
|
})
|
89
88
|
end
|
90
89
|
|
91
90
|
def package()
|
92
|
-
|
91
|
+
vagrant_driver.package({ :base_dir => @vagrantfile_dir, :box_name => @box_name })
|
93
92
|
end
|
94
93
|
|
95
94
|
def destroy()
|
96
|
-
|
95
|
+
vagrant_driver.destroy({ :cmd_timeout_in_seconds => @destroy_timeout_in_seconds, :retry_attempts => @destroy_retry_attempts })
|
97
96
|
end
|
98
97
|
|
99
98
|
def halt()
|
100
|
-
|
99
|
+
vagrant_driver.halt({ :cmd_timeout_in_seconds => @halt_timeout_in_seconds, :retry_attempts => @halt_retry_attempts })
|
100
|
+
end
|
101
|
+
|
102
|
+
def vagrant_driver()
|
103
|
+
@vagrant_driver ||= DaptivChefCI::VagrantDriver.new(@provider)
|
101
104
|
end
|
102
105
|
|
103
106
|
end
|
@@ -33,7 +33,6 @@ class VagrantUp
|
|
33
33
|
@provider = :virtualbox
|
34
34
|
@up_timeout_in_seconds = 7200
|
35
35
|
@environment = {}
|
36
|
-
@vagrant_driver = DaptivChefCI::VagrantDriver.new(@provider)
|
37
36
|
yield self if block_given?
|
38
37
|
define_task
|
39
38
|
end
|
@@ -44,13 +43,17 @@ class VagrantUp
|
|
44
43
|
desc @desc
|
45
44
|
task @name do
|
46
45
|
execute {
|
47
|
-
|
46
|
+
vagrant_driver.up({
|
48
47
|
:cmd_timeout_in_seconds => @up_timeout_in_seconds,
|
49
48
|
:environment => @environment
|
50
49
|
})
|
51
50
|
}
|
52
51
|
end
|
53
52
|
end
|
53
|
+
|
54
|
+
def vagrant_driver()
|
55
|
+
@vagrant_driver ||= DaptivChefCI::VagrantDriver.new(@provider)
|
56
|
+
end
|
54
57
|
|
55
58
|
end
|
56
59
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: daptiv-chef-ci
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.11
|
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: 2013-11-
|
12
|
+
date: 2013-11-12 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: log4r
|
@@ -129,6 +129,7 @@ files:
|
|
129
129
|
- lib/daptiv-chef-ci/virtualbox_driver.rb
|
130
130
|
- lib/daptiv-chef-ci/vmware_basebox_builder.rb
|
131
131
|
- pkg/daptiv-chef-ci-0.0.1.gem
|
132
|
+
- pkg/daptiv-chef-ci-0.0.10.gem
|
132
133
|
- pkg/daptiv-chef-ci-0.0.2.gem
|
133
134
|
- pkg/daptiv-chef-ci-0.0.3.gem
|
134
135
|
- pkg/daptiv-chef-ci-0.0.4.gem
|
@@ -166,7 +167,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
166
167
|
version: '0'
|
167
168
|
segments:
|
168
169
|
- 0
|
169
|
-
hash:
|
170
|
+
hash: 4467900760227651610
|
170
171
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
171
172
|
none: false
|
172
173
|
requirements:
|
@@ -175,7 +176,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
175
176
|
version: '0'
|
176
177
|
segments:
|
177
178
|
- 0
|
178
|
-
hash:
|
179
|
+
hash: 4467900760227651610
|
179
180
|
requirements: []
|
180
181
|
rubyforge_project:
|
181
182
|
rubygems_version: 1.8.23
|