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: 3e38baa57a9e5441bbad593354a89d7f0f5a6cd1
4
- data.tar.gz: 57864d5e0a145d157c91b6f96c120263607733dd
3
+ metadata.gz: 88064b80b06d252b26a4d6374c2453d38d74c8b9
4
+ data.tar.gz: 01a7bd28dffa10920b0e0052d89a11764819ee7f
5
5
  SHA512:
6
- metadata.gz: a7d5f1034b1787a801f5838deace842fbdcf7f2cb43c2bcc3970a6f19c8d27b14204e40cb1481d7f9612cd1dd62186bfea03c3e1b84a4dbcfaa1a868caf12620
7
- data.tar.gz: 0b7958f49562ae2c76a673da212803a9e0e037b6a25778c1c64725476cf489c104d550b71181d0316889711c5b138f7ff6c014149b36ffcdffdbc9d7d3ef3b4f
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.components.keys.each do |component_id|
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.components : [component_id]
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 components
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
@@ -1,7 +1,7 @@
1
1
  module BBC
2
2
  module Cosmos
3
3
  module Tools
4
- VERSION = "0.0.2"
4
+ VERSION = "0.0.3"
5
5
  end
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bbc-cosmos-tools
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Steven Jack