opzworks 0.3.2 → 0.3.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: 54a8db4d18a1f2f35249675c31e549b5abf8af6d
|
4
|
+
data.tar.gz: 3ec49b3d90823083a8c8c01a22df12c3fb09deda
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 52886e13f13d4b5fc104d42b350ea2dcc800fafc74a5aa76cfe08dd35770487721851e7764d381a60b2663651437a625dd54275ce9aea6f14586980df7de41a2
|
7
|
+
data.tar.gz: 058975fdb065b9c4f518abb18fe9736140b650fe58ff0a5359b6004614c4d9643cf4a6a9f79421da732e607846098790004361cb2234d61e333349e650039963
|
@@ -40,11 +40,11 @@ module OpzWorks
|
|
40
40
|
|
41
41
|
# loops over inputs
|
42
42
|
ARGV.each do |opt|
|
43
|
-
populate_stack(opt, response)
|
44
|
-
next if
|
43
|
+
var = populate_stack(opt, response)
|
44
|
+
next if var == false
|
45
45
|
|
46
|
-
manage_berks_repos
|
47
|
-
next if
|
46
|
+
var = manage_berks_repos
|
47
|
+
next if var == false
|
48
48
|
|
49
49
|
berks_cook_path = config.berks_base_path || '/tmp'
|
50
50
|
cook_path = "#{berks_cook_path}/#{@project}-#{@branch}"
|
@@ -5,7 +5,7 @@ def manage_berks_repos
|
|
5
5
|
if !File.directory?(@target_path)
|
6
6
|
if config.berks_github_org.nil?
|
7
7
|
puts "#{@target_path} does not exist, and 'berks-github-org' is not set in ~/.aws/config, skipping.".foreground(:yellow)
|
8
|
-
|
8
|
+
return false
|
9
9
|
else
|
10
10
|
repo = "git@github.com:#{config.berks_github_org}/opsworks-#{@project}.git"
|
11
11
|
puts "#{@target_path} does not exist!".foreground(:red)
|
@@ -12,10 +12,10 @@ def populate_stack(input, data = {})
|
|
12
12
|
# break?
|
13
13
|
if count < 1
|
14
14
|
puts 'No matching stacks found for input '.foreground(:yellow) + input.foreground(:green) + ', skipping.'.foreground(:yellow)
|
15
|
-
|
15
|
+
return false
|
16
16
|
elsif count > 1
|
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
20
|
@stack_json = match[:custom_json]
|
21
21
|
@project = match[:name].split('::').first
|
@@ -38,11 +38,11 @@ module OpzWorks
|
|
38
38
|
|
39
39
|
# loops over inputs
|
40
40
|
ARGV.each do |opt|
|
41
|
-
populate_stack(opt, response)
|
42
|
-
next if
|
41
|
+
var = populate_stack(opt, response)
|
42
|
+
next if var == false
|
43
43
|
|
44
|
-
manage_berks_repos
|
45
|
-
next if
|
44
|
+
var = manage_berks_repos
|
45
|
+
next if var == false
|
46
46
|
|
47
47
|
json = File.read("#{@target_path}/stack.json")
|
48
48
|
diff = Diffy::Diff.new(@stack_json + "\n", json, context: options[:context])
|
data/lib/opzworks/meta.rb
CHANGED