opsicle 2.9.2 → 2.9.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: 7abeccd9dc63b305500303749e789670236d08fe
4
- data.tar.gz: 668eb7af2ab47cebe1c75c809000dc76048664cf
3
+ metadata.gz: 68fb538f3c30323d782949bb6873d25f954e1a4c
4
+ data.tar.gz: d60460ab9f7ff89eae00eb3a554f9d70ca129488
5
5
  SHA512:
6
- metadata.gz: 43fd4966ef360687cc369586445cb4b4390a7039c4f64a6725f3076a8cfcc2c4220e7142180f715c507f1549a7fbd1a2b1d49972e92b95ab63e9cde814b6432b
7
- data.tar.gz: 98c560052930f4dbfe6673d3893ff404f513a084e4a539e39221502e4687ca086e28dfe9be0c515c64aabafffe3546af77b6709bef812d1fd13fc9cb7496e4ce
6
+ metadata.gz: 3e26a5fe8ff33488e2b687629857243b8bd082d481f249627b45bf5e2147cfa37f994b3d29626276b4c558bc380556abff165f519963ba1e9e54b7c09079750a
7
+ data.tar.gz: db8290a71cb8e17b738b0b1814993a7c1787f5a602f29b3aca6d0ce969f63556d33420ffdde93e614e2878c98a95b24660550af939fcff7276e49a469d0fb587
@@ -135,12 +135,13 @@ module Opsicle
135
135
  if ami_id == "Provide a different AMI ID."
136
136
  ami_id = ask_for_new_option('AMI ID')
137
137
  end
138
+
139
+ self.layer.ami_id = ami_id # only set AMI ID for whole layer if they override it
138
140
  else
139
141
  ami_id = self.ami_id
140
142
  end
141
143
  end
142
144
 
143
- self.layer.ami_id = ami_id
144
145
  ami_id
145
146
  end
146
147
 
@@ -154,12 +155,13 @@ module Opsicle
154
155
  agents = @opsworks.describe_agent_versions(stack_id: self.stack_id).agent_versions
155
156
  version_ids = agents.collect { |i| i.version }.uniq
156
157
  agent_version = ask_for_possible_options(version_ids, "agent version")
158
+
159
+ self.layer.agent_version = agent_version # only set agent version for whole layer if they override
157
160
  else
158
161
  agent_version = self.agent_version
159
162
  end
160
163
  end
161
164
 
162
- self.layer.agent_version = agent_version
163
165
  agent_version
164
166
  end
165
167
 
@@ -187,12 +189,13 @@ module Opsicle
187
189
  subnets = subnets.sort
188
190
  subnet_id = ask_for_possible_options(subnets, "subnet ID")
189
191
  subnet_id = subnet_id.scan(/(subnet-[a-z0-9]*)/).first.first if subnet_id
192
+
193
+ self.layer.subnet_id = subnet_id # only set the subnet ID for whole layer if they override it
190
194
  else
191
195
  subnet_id = self.subnet_id
192
196
  end
193
197
  end
194
198
 
195
- self.layer.subnet_id = subnet_id
196
199
  subnet_id
197
200
  end
198
201
 
@@ -215,7 +218,7 @@ module Opsicle
215
218
 
216
219
  def ask_for_overriding_permission(description, overriding_all)
217
220
  if overriding_all
218
- ans = @cli.ask("Do you wish to override this #{description}? By overriding, you are choosing to override the current #{description} for all instances you are cloning.\n1) Yes\n2) No", Integer)
221
+ ans = @cli.ask("Do you wish to override this #{description}? By overriding, you are choosing to override the current #{description} for all of the following instances you're cloning.\n1) Yes\n2) No", Integer)
219
222
  else
220
223
  ans = @cli.ask("Do you wish to override this #{description}?\n1) Yes\n2) No", Integer)
221
224
  end
@@ -1,3 +1,3 @@
1
1
  module Opsicle
2
- VERSION = "2.9.2"
2
+ VERSION = "2.9.3"
3
3
  end
@@ -52,13 +52,13 @@ module Opsicle
52
52
  allow_any_instance_of(HighLine).to receive(:ask).with("Instances? (enter as a comma separated list)\n", String).and_return('2')
53
53
  allow_any_instance_of(HighLine).to receive(:ask).with("Do you wish to override this hostname?\n1) Yes\n2) No", Integer).and_return(2)
54
54
  allow_any_instance_of(HighLine).to receive(:ask).with("Please write in the new instance's hostname and press ENTER:").and_return('example-hostname')
55
- allow_any_instance_of(HighLine).to receive(:ask).with("Do you wish to override this AMI ID? By overriding, you are choosing to override the current AMI ID for all instances you are cloning.\n1) Yes\n2) No", Integer).and_return(2)
55
+ allow_any_instance_of(HighLine).to receive(:ask).with("Do you wish to override this AMI ID? By overriding, you are choosing to override the current AMI ID for all of the following instances you're cloning.\n1) Yes\n2) No", Integer).and_return(2)
56
56
  allow_any_instance_of(HighLine).to receive(:ask).with("Which AMI ID?\n", Integer).and_return(1)
57
- allow_any_instance_of(HighLine).to receive(:ask).with("Do you wish to override this agent version? By overriding, you are choosing to override the current agent version for all instances you are cloning.\n1) Yes\n2) No", Integer).and_return(2)
57
+ allow_any_instance_of(HighLine).to receive(:ask).with("Do you wish to override this agent version? By overriding, you are choosing to override the current agent version for all of the following instances you're cloning.\n1) Yes\n2) No", Integer).and_return(2)
58
58
  allow_any_instance_of(HighLine).to receive(:ask).with("Which agent version?\n", Integer).and_return(1)
59
59
  allow_any_instance_of(HighLine).to receive(:ask).with("Do you wish to override this instance type?\n1) Yes\n2) No", Integer).and_return(2)
60
60
  allow_any_instance_of(HighLine).to receive(:ask).with("Please write in the new instance type press ENTER:").and_return('t2.micro')
61
- allow_any_instance_of(HighLine).to receive(:ask).with("Do you wish to override this subnet ID? By overriding, you are choosing to override the current subnet ID for all instances you are cloning.\n1) Yes\n2) No", Integer).and_return(2)
61
+ allow_any_instance_of(HighLine).to receive(:ask).with("Do you wish to override this subnet ID? By overriding, you are choosing to override the current subnet ID for all of the following instances you're cloning.\n1) Yes\n2) No", Integer).and_return(2)
62
62
  allow_any_instance_of(HighLine).to receive(:ask).with("Which subnet ID?\n", Integer).and_return(1)
63
63
  allow_any_instance_of(HighLine).to receive(:ask).with("Do you wish to start this new instance?\n1) Yes\n2) No", Integer).and_return(1)
64
64
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: opsicle
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.9.2
4
+ version: 2.9.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andy Fleener
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2017-07-14 00:00:00.000000000 Z
12
+ date: 2017-07-19 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: aws-sdk