elastic_beans 0.13.0.alpha10 → 0.13.0.alpha11

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: 2869ba16cc871ba5afc58805b579f85889df995e
4
- data.tar.gz: e3cbdc2ea16456a89bdb6d2f0f7344a86cf79f08
3
+ metadata.gz: bd56dfb16455f11991216cb72f3bd09ed7410584
4
+ data.tar.gz: b442fd670007cf5f3aafc80b45b41c0bfa26e11d
5
5
  SHA512:
6
- metadata.gz: afa8aff1acfce60563bee6dae148bc62cbe9141797c711779485561c78c406208532998d3b7d11e716fb2c0d30245b835798d3c6eda22ac6eabd9568be7b2437
7
- data.tar.gz: 308f73ae0944b88373caf8927d8222eacdb2f789b2d6593ecb1a29c91e2870797f0731cc770a60dc7d9f122df63091b06620656dcde93f487d6c7e7141178107
6
+ metadata.gz: 75f89a10b1dd6af7d08a0ff9e74d66fee3c35229b4cd4c981bb1b09bb94f6228f98d493df4b95c4af6b425cd23a3c8d75acd483afcaf15a93dec3ef09875e668
7
+ data.tar.gz: ce22fe5c5e2ccdf46516751e2487ee84f8252aac52fc6fbfe0d3eef9be62c804b5e04f6b37f06a015704c62df4891c46697506366107c0d9dfae8d99bb9f95ea
@@ -90,7 +90,7 @@ module ElasticBeans
90
90
  def create_archive(working_directory:, sha:, path:)
91
91
  FileUtils.mkdir_p(File.dirname(path))
92
92
  Dir.chdir(working_directory) do
93
- system("git archive --format=zip -o #{path} #{sha}")
93
+ system("git archive --format=zip -o '#{path}' #{sha}")
94
94
  end
95
95
  unless $?.success?
96
96
  raise FailedArchiveError.new(sha: sha, path: path)
@@ -238,7 +238,7 @@ module ElasticBeans
238
238
  end
239
239
 
240
240
  def message
241
- "Could not create git archive of sha `#{sha}' at path `#{path}'"
241
+ "Could not create git archive of sha `#{@sha}' at path `#{@path}'"
242
242
  end
243
243
  end
244
244
 
@@ -68,7 +68,7 @@ module ElasticBeans
68
68
  keypair_setting,
69
69
  ]
70
70
  if solution_stack
71
- settings << template_option_setting(template: template, namespace: "aws:elasticbeanstalk:customoption", option_name: "SolutionStack", override: solution_stack, new_settings: option_settings)
71
+ settings << template_option_setting(template: template, namespace: "aws:elasticbeanstalk:application:environment", option_name: "ELASTIC_BEANS_SOLUTION_STACK", override: solution_stack, new_settings: option_settings)
72
72
  end
73
73
  super + settings
74
74
  end
@@ -80,15 +80,14 @@ module ElasticBeans
80
80
  private
81
81
 
82
82
  # Finds the previously-configured solution stack when one was not specified.
83
- # The solution stack name is stored in a custom option named "SolutionStack",
83
+ # The solution stack name is stored in an environment variable named "ELASTIC_BEANS_SOLUTION_STACK",
84
84
  # because updating the template's solution stack is not supported by Elastic Beanstalk.
85
- # See http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/configuration-options-custom.html for more information on custom options.
86
- # If the custom option is not set because the application was configured by an older version of beans, returns the template's configured solution stack.
85
+ # If the environment variable is not set because the application was configured by an older version of beans, returns the template's configured solution stack.
87
86
  def configured_solution_stack
88
87
  template = configuration_settings_description("base")
89
88
  if template
90
89
  setting = template.option_settings.find { |setting|
91
- setting.namespace == "aws:elasticbeanstalk:customoption" && setting.option_name == "SolutionStack"
90
+ setting.namespace == "aws:elasticbeanstalk:application:environment" && setting.option_name == "ELASTIC_BEANS_SOLUTION_STACK"
92
91
  }
93
92
  if setting
94
93
  return setting.value
@@ -1,3 +1,3 @@
1
1
  module ElasticBeans
2
- VERSION = "0.13.0.alpha10"
2
+ VERSION = "0.13.0.alpha11"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: elastic_beans
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.13.0.alpha10
4
+ version: 0.13.0.alpha11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adam Stegman
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-08-08 00:00:00.000000000 Z
11
+ date: 2017-08-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk