clc-promote 0.4.0.dev.14 → 0.4.0.dev.15
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/promote/versioner.rb +6 -10
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4fbec88c6ee783cfda0c4dde10e77efe5158cdd4
|
4
|
+
data.tar.gz: e409cf9cf81cd1a632e41755f355398d9e8f9d89
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ae4afb75ef882b373ebd7e8614dde5bfbd9acf6544902518533ce5ea4dc469c80622b4c999733cf18b48d37007f036393f3ee81014523e5a22eb6e563a7aec24
|
7
|
+
data.tar.gz: c157119d21822944b319a74cbefdfd9aa7d4b657e8235f8a938b65e8ca1c6060f06df006f61d6b7292f60c1c354a8fa7894d15299e13829031ab73f9c5736f07
|
data/lib/promote/versioner.rb
CHANGED
@@ -83,16 +83,12 @@ module Promote
|
|
83
83
|
dependencies
|
84
84
|
end
|
85
85
|
|
86
|
-
def is_dirty(
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
return cb_dependency.locked_version.to_s != env_file.cookbook_versions[cookbook_name]
|
93
|
-
else
|
94
|
-
return true
|
95
|
-
end
|
86
|
+
def is_dirty(source_environment, target_environment, cookbook_name)
|
87
|
+
target_env_file = EnvironmentFile.new(target_environment, config)
|
88
|
+
return true unless target_env_file.cookbook_versions.has_key?(cookbook_name)
|
89
|
+
|
90
|
+
source_env_file = EnvironmentFile.new(source_environment, config)
|
91
|
+
return source_env_file.cookbook_versions[cookbook_name] != target_env_file.cookbook_versions[cookbook_name]
|
96
92
|
end
|
97
93
|
|
98
94
|
attr_accessor :config
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: clc-promote
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.0.dev.
|
4
|
+
version: 0.4.0.dev.15
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- CenturyLink Cloud
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-12-
|
11
|
+
date: 2014-12-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: chef
|