opzworks 0.4.2 → 0.4.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6026ec5ba1fa9f91a019f390562652e4d2e61973
4
- data.tar.gz: b9a91f25201068131b39fd673c083ecffdbd0bfa
3
+ metadata.gz: a7ad88421aa09cd7a07a39e8957c81a6bc80936c
4
+ data.tar.gz: 715efa5f72dbab75ccff574ae046b8d40dbcf73c
5
5
  SHA512:
6
- metadata.gz: 73e6f8b5a47ac7f5ddcef0f5027af1b9d75f527c9b9ff4315ea725161eb811cb7e61b917e7973d00500eddae59585412bbde65533790e52c5e313e4649bb9935
7
- data.tar.gz: 33b21e36a45d7fb154e1ac125d2d3d3d5682b72a7ffa8bebff5ec7f6dc4013eaa081da9a274cb64eccde16e32a13e1677ed0d3431a6b7a82a2d8e3c2ae286c21
6
+ metadata.gz: ef147d83b51b33fe8a160dc09f46fdb71afb90ce7c9bbe8207a97076ef0e605d29bd38ede053919877358fd0bbf40656aa361dc9a716026fd3d6d7cdc6a6c623
7
+ data.tar.gz: 5d45d0c029a577e3aa1964c213851746c797964a16cca0e58dc98656925ab129eb6942df59df844d05e7acc24544d8629de4b73da7bcbd3880ae7affbf3e19dd
@@ -43,6 +43,15 @@ module OpzWorks
43
43
  var = populate_stack(opt, response)
44
44
  next if var == false
45
45
 
46
+ hash = {
47
+ 'PROJECT:' => @project,
48
+ 'STACK ID:' => @stack_id,
49
+ 'S3 PATH:' => @s3_path,
50
+ 'BRANCH:' => @branch
51
+ }
52
+ puts "\n"
53
+ hash.each { |k, v| printf("%-25s %-25s\n", k.foreground(:green), v.foreground(:red)) }
54
+
46
55
  var = manage_berks_repos
47
56
  next if var == false
48
57
 
@@ -15,7 +15,7 @@ module OpzWorks
15
15
  banner <<-EOS.unindent
16
16
  #{CMD.banner}
17
17
 
18
- opzworks cmd [option]
18
+ opzworks cmd [--list-stacks]
19
19
 
20
20
  Options:
21
21
  EOS
@@ -17,19 +17,15 @@ def populate_stack(input, data = {})
17
17
  puts 'Found more than one stack matching input '.foreground(:yellow) + input.foreground(:green) + ', skipping.'.foreground(:yellow)
18
18
  return false
19
19
  else
20
- @stack_json = match[:custom_json] || ''
21
- @project = match[:name].split('::').first
22
- @s3_path = match[:name].gsub('::', '-')
23
- @stack_id = match[:stack_id]
24
- @branch = (match[:name].split('::')[1] + '-' + match[:name].split('::')[2]).gsub('::', '-')
25
-
26
- hash = {
27
- 'PROJECT:' => @project,
28
- 'STACK ID:' => @stack_id,
29
- 'S3 PATH:' => @s3_path,
30
- 'BRANCH:' => @branch
31
- }
32
- puts "\n"
33
- hash.each { |k, v| printf("%-25s %-25s\n", k.foreground(:green), v.foreground(:red)) }
20
+ @stack_json = match[:custom_json] || ''
21
+ @project = match[:name].split('::').first
22
+ @s3_path = match[:name].gsub('::', '-')
23
+ @stack_id = match[:stack_id]
24
+ @branch = (match[:name].split('::')[1] + '-' + match[:name].split('::')[2]).gsub('::', '-')
25
+ @arn = match[:arn]
26
+ @region = match[:region]
27
+ @default_subnet = match[:default_subnet_id]
28
+ @default_os = match[:default_os]
29
+ @chef_version = match[:configuration_manager]
34
30
  end
35
31
  end
@@ -40,6 +40,15 @@ module OpzWorks
40
40
  var = populate_stack(opt, response)
41
41
  next if var == false
42
42
 
43
+ hash = {
44
+ 'PROJECT:' => @project,
45
+ 'STACK ID:' => @stack_id,
46
+ 'S3 PATH:' => @s3_path,
47
+ 'BRANCH:' => @branch
48
+ }
49
+ puts "\n"
50
+ hash.each { |k, v| printf("%-25s %-25s\n", k.foreground(:green), v.foreground(:red)) }
51
+
43
52
  var = manage_berks_repos
44
53
  next if var == false
45
54
 
data/lib/opzworks/meta.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  module OpzWorks
2
- VERSION = '0.4.2'
2
+ VERSION = '0.4.3'
3
3
  AUTHORS = ['Grant Heffernan', 'Mapzen']
4
4
  EMAIL = ['grant@mapzen.com']
5
5
  DESCRIPTION = 'OpzWorks Utilities'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: opzworks
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.2
4
+ version: 0.4.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Grant Heffernan
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2016-01-13 00:00:00.000000000 Z
12
+ date: 2016-01-14 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: aws-sdk