bbc-cosmos-tools 0.0.2 → 0.0.3
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.
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 88064b80b06d252b26a4d6374c2453d38d74c8b9
|
|
4
|
+
data.tar.gz: 01a7bd28dffa10920b0e0052d89a11764819ee7f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: dbca70ac824f847de761610b6b5dd303600cfa785795de708cf957cac4fe0d23c71647b00b4c952cbf34fe2e77041191ee57520e6aac274a267d75011b901c80
|
|
7
|
+
data.tar.gz: b18471c440a0844e56ae9ab8375276e55a2f3d7e9ec154ece13a52cf2da87d359cc9554458c8032d002d7cfbf21ebc221cdc79e87176ab66fa23b651ece8b042
|
|
@@ -58,7 +58,7 @@ module BBC
|
|
|
58
58
|
|
|
59
59
|
say "\n#{message}\n", :green
|
|
60
60
|
|
|
61
|
-
cosmos_config.
|
|
61
|
+
cosmos_config.component_keys.each do |component_id|
|
|
62
62
|
say "- #{component_id}", :blue
|
|
63
63
|
end
|
|
64
64
|
rescue Exception => e
|
|
@@ -76,7 +76,7 @@ module BBC
|
|
|
76
76
|
def push(component_id = nil)
|
|
77
77
|
begin
|
|
78
78
|
|
|
79
|
-
components = component_id.nil? ? cosmos_config.
|
|
79
|
+
components = component_id.nil? ? cosmos_config.component_keys : [component_id]
|
|
80
80
|
|
|
81
81
|
reply = yes?("Are you sure you want to push changes for #{components.length} components(s) to #{options[:env]}?", :blue) unless options[:force]
|
|
82
82
|
if reply || reply.nil?
|
|
@@ -11,12 +11,12 @@ module BBC
|
|
|
11
11
|
@config = config
|
|
12
12
|
end
|
|
13
13
|
|
|
14
|
-
def
|
|
15
|
-
config.components
|
|
14
|
+
def component_keys
|
|
15
|
+
config.components.keys
|
|
16
16
|
end
|
|
17
17
|
|
|
18
18
|
def component(id)
|
|
19
|
-
components[id].tap do |o|
|
|
19
|
+
config.components[id].tap do |o|
|
|
20
20
|
raise("Invalid component id: #{id}") if o.nil?
|
|
21
21
|
end
|
|
22
22
|
end
|