terraform 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/terraform/dsl.rb +1 -0
- data/lib/terraform/version.rb +1 -1
- data/test/unit/terraform/dsl_test.rb +21 -0
- metadata +33 -63
data/lib/terraform/dsl.rb
CHANGED
data/lib/terraform/version.rb
CHANGED
@@ -68,6 +68,27 @@ class DslTest < Scope::TestCase
|
|
68
68
|
end
|
69
69
|
assert_raises(ProcessExit) { capture_output { satisfy_dependencies } }
|
70
70
|
end
|
71
|
+
|
72
|
+
should "allow multiple invocations of satisfy_dependencies, each with different deps" do
|
73
|
+
dep1_has_run = false
|
74
|
+
dep "dep1" do
|
75
|
+
met? { dep1_has_run }
|
76
|
+
meet { dep1_has_run = true }
|
77
|
+
end
|
78
|
+
capture_output { satisfy_dependencies }
|
79
|
+
assert dep1_has_run
|
80
|
+
|
81
|
+
dep1_has_run = false
|
82
|
+
dep2_has_run = false
|
83
|
+
dep "dep2" do
|
84
|
+
met? { dep2_has_run }
|
85
|
+
meet { dep2_has_run = true }
|
86
|
+
end
|
87
|
+
# This invocation of satisfy_dependencies should only run dep2, not dep1.
|
88
|
+
capture_output { satisfy_dependencies }
|
89
|
+
assert dep2_has_run
|
90
|
+
assert_equal false, dep1_has_run
|
91
|
+
end
|
71
92
|
end
|
72
93
|
|
73
94
|
context "ensure_ppa" do
|
metadata
CHANGED
@@ -1,65 +1,45 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: terraform
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.5
|
5
5
|
prerelease:
|
6
|
-
segments:
|
7
|
-
- 0
|
8
|
-
- 0
|
9
|
-
- 4
|
10
|
-
version: 0.0.4
|
11
6
|
platform: ruby
|
12
|
-
authors:
|
7
|
+
authors:
|
13
8
|
- Phil Crosby
|
14
9
|
autorequire:
|
15
10
|
bindir: bin
|
16
11
|
cert_chain: []
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
dependencies:
|
21
|
-
- !ruby/object:Gem::Dependency
|
12
|
+
date: 2012-05-08 00:00:00.000000000Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
22
15
|
name: scope
|
23
|
-
|
24
|
-
requirement: &id001 !ruby/object:Gem::Requirement
|
16
|
+
requirement: &70229330495600 !ruby/object:Gem::Requirement
|
25
17
|
none: false
|
26
|
-
requirements:
|
18
|
+
requirements:
|
27
19
|
- - ~>
|
28
|
-
- !ruby/object:Gem::Version
|
29
|
-
hash: 17
|
30
|
-
segments:
|
31
|
-
- 0
|
32
|
-
- 2
|
33
|
-
- 3
|
20
|
+
- !ruby/object:Gem::Version
|
34
21
|
version: 0.2.3
|
35
22
|
type: :development
|
36
|
-
version_requirements: *id001
|
37
|
-
- !ruby/object:Gem::Dependency
|
38
|
-
name: rr
|
39
23
|
prerelease: false
|
40
|
-
|
24
|
+
version_requirements: *70229330495600
|
25
|
+
- !ruby/object:Gem::Dependency
|
26
|
+
name: rr
|
27
|
+
requirement: &70229330493900 !ruby/object:Gem::Requirement
|
41
28
|
none: false
|
42
|
-
requirements:
|
29
|
+
requirements:
|
43
30
|
- - ~>
|
44
|
-
- !ruby/object:Gem::Version
|
45
|
-
hash: 31
|
46
|
-
segments:
|
47
|
-
- 1
|
48
|
-
- 0
|
49
|
-
- 4
|
31
|
+
- !ruby/object:Gem::Version
|
50
32
|
version: 1.0.4
|
51
33
|
type: :development
|
52
|
-
|
34
|
+
prerelease: false
|
35
|
+
version_requirements: *70229330493900
|
53
36
|
description:
|
54
|
-
email:
|
37
|
+
email:
|
55
38
|
- phil.crosby@gmail.com
|
56
39
|
executables: []
|
57
|
-
|
58
40
|
extensions: []
|
59
|
-
|
60
41
|
extra_rdoc_files: []
|
61
|
-
|
62
|
-
files:
|
42
|
+
files:
|
63
43
|
- .gitignore
|
64
44
|
- Gemfile
|
65
45
|
- README.markdown
|
@@ -70,40 +50,30 @@ files:
|
|
70
50
|
- terraform.gemspec
|
71
51
|
- test/test_helper.rb
|
72
52
|
- test/unit/terraform/dsl_test.rb
|
73
|
-
has_rdoc: true
|
74
53
|
homepage: http://github.com/philc/terraform
|
75
54
|
licenses: []
|
76
|
-
|
77
55
|
post_install_message:
|
78
56
|
rdoc_options: []
|
79
|
-
|
80
|
-
require_paths:
|
57
|
+
require_paths:
|
81
58
|
- lib
|
82
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
59
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
83
60
|
none: false
|
84
|
-
requirements:
|
85
|
-
- -
|
86
|
-
- !ruby/object:Gem::Version
|
87
|
-
|
88
|
-
|
89
|
-
- 0
|
90
|
-
version: "0"
|
91
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
61
|
+
requirements:
|
62
|
+
- - ! '>='
|
63
|
+
- !ruby/object:Gem::Version
|
64
|
+
version: '0'
|
65
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
92
66
|
none: false
|
93
|
-
requirements:
|
94
|
-
- -
|
95
|
-
- !ruby/object:Gem::Version
|
96
|
-
|
97
|
-
segments:
|
98
|
-
- 0
|
99
|
-
version: "0"
|
67
|
+
requirements:
|
68
|
+
- - ! '>='
|
69
|
+
- !ruby/object:Gem::Version
|
70
|
+
version: '0'
|
100
71
|
requirements: []
|
101
|
-
|
102
72
|
rubyforge_project: terraform
|
103
|
-
rubygems_version: 1.
|
73
|
+
rubygems_version: 1.8.10
|
104
74
|
signing_key:
|
105
75
|
specification_version: 3
|
106
76
|
summary: Set up a cold, inhospitable system using Terraform.
|
107
|
-
test_files:
|
77
|
+
test_files:
|
108
78
|
- test/test_helper.rb
|
109
79
|
- test/unit/terraform/dsl_test.rb
|