opsicle 0.18.0 → 0.18.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- ZjQ5NzAzZWVmZTUxMTVjMDcxMjU0ZTQ3ZWIwMDNlZGMwMjZiMThlNQ==
4
+ NjEzMDE0NTIyZmFjZjMwZWIxNTcxOTViNWNkODY3Y2JjMWVjNmE3ZQ==
5
5
  data.tar.gz: !binary |-
6
- YjhjMDRmNTI0MjMyNGI0ZTc0MDUzOTYyOWEzNDgyZGVjOWFjZDFkYw==
6
+ M2Q2NDIwZTg5MzhmZTE2OWFjMmU4ZDIwNWZmZWU0ZWUzZjU3NzBkNQ==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- YmI5ZWJmNDgyMjM0NGQ3YTY0YmVhMzliMDY5NzVjYmE4MmQzYTUxMjA0MTIw
10
- MjdiOGIxZDM0MzAxYTIzMzE0NWRlZjI4ZWVmMmJhMmIzYjY2Mzc5MmE4NDFk
11
- MTMxNDkxOTU5ZGFlNTIwMTZiOGZkYjg2NDE3NmEzM2Q0NGU4OWU=
9
+ NTY3YjI2YjYxZTRhOGMxYTI2MmFiMWNhZDQ5YjBjNDcwOWU3ZjE4NDg1MzA0
10
+ YzZiN2JkNWE2NDY1ODdiNmFmODI4OTJmMWY4ZmZlZWY3ZmM0MzQzZGMwY2Y4
11
+ ODlmMDU4OGZkOTgyY2NmZmRhMDhmNDQyZjA2NDU2YTAxZGI3OTU=
12
12
  data.tar.gz: !binary |-
13
- Njg5YTc4YjE5MzYyYTAyYzBlZmI5MGMyZmFmNGE1OTFhYzU3MWM2NDcxODRl
14
- OGI2MGNlZDNjYzE0MGU5NmRkMjI5NGQ3MjI3NGQyOTViNmE0N2I0MmNjMjFj
15
- MWVlODViZWVjOTNlZjY2ZjJhZDZjNjNiYWViNTdlOGEwMDRjODU=
13
+ YzIyMTI0OTg3YjE0MDk5Y2UxNjE1NjMyNWYxNDA1ZjlhNDdhMjQwNjA2Yjkx
14
+ OWQ3NDU0NzQ2YWExNTM0NTc5N2JjNzU4ZTUzNzU0NzZmNDVmM2I1YjczYTM0
15
+ ZmFlM2I5ZDUxYTE2NjhhMjNhMzY5YWNlNjg5ODEwMjU3MjJhZGU=
@@ -27,8 +27,15 @@ module Opsicle
27
27
  "https://console.aws.amazon.com/opsworks/home?#/stack/#{@config.opsworks_config[:stack_id]}"
28
28
  end
29
29
 
30
+ def stack_config
31
+ {
32
+ stack_id: config.opsworks_config[:stack_id],
33
+ app_id: config.opsworks_config[:app_id]
34
+ }
35
+ end
36
+
30
37
  def command_options(command, command_args={}, options={})
31
- config.opsworks_config.merge(options).merge({ command: { name: command, args: command_args } })
38
+ stack_config.merge(options).merge({ command: { name: command, args: command_args } })
32
39
  end
33
40
  private :command_options
34
41
 
@@ -1,3 +1,3 @@
1
1
  module Opsicle
2
- VERSION = "0.18.0"
2
+ VERSION = "0.18.1"
3
3
  end
@@ -8,7 +8,7 @@ module Opsicle
8
8
  let(:config) { double }
9
9
  before do
10
10
  ow_stub = double
11
- allow(config).to receive(:opsworks_config).and_return({ stack_id: 'stack', app_id: 'app' })
11
+ allow(config).to receive(:opsworks_config).and_return({ stack_id: 'stack', app_id: 'app', something_else: 'true' })
12
12
  allow(ow_stub).to receive(:client).and_return(aws_client)
13
13
  allow(Config).to receive(:new).and_return(config)
14
14
  allow(AWS::OpsWorks).to receive(:new).and_return(ow_stub)
@@ -26,6 +26,11 @@ module Opsicle
26
26
  )
27
27
  subject.run_command('deploy')
28
28
  end
29
+ it "removes extra options from the opsworks config" do
30
+ expect(config).to receive(:configure_aws!)
31
+ expect(aws_client).to receive(:create_deployment).with(hash_excluding(:something_else))
32
+ subject.run_command('deploy')
33
+ end
29
34
  end
30
35
  end
31
36
  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: 0.18.0
4
+ version: 0.18.1
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: 2015-12-14 00:00:00.000000000 Z
12
+ date: 2015-12-15 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: aws-sdk