stackit 0.2.4 → 0.2.5

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: a225e6abeda5000b1cd2878f56cfc66a4ee0c2b3
4
- data.tar.gz: 1478f2af16985b5106bec286b30a3cfc5c524028
3
+ metadata.gz: 53117e180823b1415771e7d49bd02a02845e6833
4
+ data.tar.gz: fd84a9ad362360a4cf67bfc4e12694ed60eaf3c0
5
5
  SHA512:
6
- metadata.gz: 6d98452acc31c62e6a8da610e70becb6c5e73c7b124b489aa67c825a05217214893bf57fd888c0f47b388cbbc361da774a6ab8db70fed071686f26fe6d703c67
7
- data.tar.gz: df7aacb5ca358cbb74f04484f29177cb024bc9011062f5f601b4dd4ce6898b550909d6beda61efead4260e4f7d153f194fa38490642992b2d34649e68de20541
6
+ metadata.gz: f181521fdd80b71e6256da7f0c83229960780b6049aaca63d9b17fafe5a216896befc91498a46993b66360d0d4891a3f69fb7c7b446a32f7e26b795ad3d2824f
7
+ data.tar.gz: ac57d629fc7668d6f3e15b8d20b0fed180f0759ccc58055200d89a5150d182dc64c61ac02dc3f2600ab2f03c1b88e57063198e683c2f484d446707fc4b385e9c
@@ -50,6 +50,10 @@ module Stackit
50
50
  dir = options[:template_dir] ? options[:template_dir] : __dir__
51
51
  end
52
52
 
53
+ def disable_rollback
54
+ true
55
+ end
56
+
53
57
  def stack
54
58
  ManagedStack.new(
55
59
  template: template,
@@ -60,10 +64,18 @@ module Stackit
60
64
  user_defined_parameters: user_defined_parameters,
61
65
  parameters_file: parameters_file,
62
66
  parameter_map: parameter_mappings,
67
+ disable_rollback: !!options[:debug] ? true : (!!options[:disable_rollback] || disable_rollback),
63
68
  wait: options[:wait],
64
69
  force: options[:force],
65
70
  dry_run: options[:dry_run],
66
- debug: !!options[:debug]
71
+ debug: !!options[:debug],
72
+ timeout_in_minutes: options[:timeout_in_minutes],
73
+ notification_arns: options[:notification_arns],
74
+ capabilities: options[:capabilities],
75
+ tags: options[:tags],
76
+ on_failure: options[:on_failure],
77
+ use_previous_template: options[:use_previous_template],
78
+ retain_resources: options[:retain_resources]
67
79
  )
68
80
  end
69
81
 
@@ -87,5 +99,13 @@ module Stackit
87
99
  end
88
100
  end
89
101
 
102
+ def opsworks_service_role_arn(key = :OpsWorksServiceRole)
103
+ "arn:aws:iam::#{Stackit.aws.account_id}:role/#{resolve_parameter(key)}"
104
+ end
105
+
106
+ def opsworks_cookbook_source(key = :DevOpsBucket)
107
+ "https://s3.amazonaws.com/#{resolve_parameter(key)}/cookbooks.tar.gz"
108
+ end
109
+
90
110
  end
91
111
  end
@@ -1,3 +1,3 @@
1
1
  module Stackit
2
- VERSION = "0.2.4"
2
+ VERSION = "0.2.5"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: stackit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.4
4
+ version: 0.2.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jeremy Hahn