broadside 3.0.0.pre.prerelease → 3.0.0

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: 3646b5161f321630b970759d4724f54eac03234c
4
- data.tar.gz: 95f4635c9450f4240f24b77e6bf783ea6a6b269a
3
+ metadata.gz: eb5aaf5744a3092e6518fdebb78228b9c0dfebe5
4
+ data.tar.gz: 6c89d8d34de699f64e6a2fbb7e349cf9c34ee3e4
5
5
  SHA512:
6
- metadata.gz: 74c5ec4bcb9caadce6370618de3e3083b249d5afcbe3246d6b0809802c67256eb12ef3cf9b09e577cc69ba932d969497479b4565c69e7d2409496c43d44e0bb1
7
- data.tar.gz: 4b0fad2d2a7f4352d2f2fe4d7210cfe1def9057d56799f96478d7e93f7e4c4b9e2c2ae8c41935243ed6f83e53be1a3ae9abaa99825af243320057fecb9592dfa
6
+ metadata.gz: 9f329022b4789f5c67078d813ecb9d5af648ec8bbb6ec346e2a9da1fb12d5dc53fc123a3a7ea14b7207ee39bb0564175523a694342c15be4349fa66155aebf56
7
+ data.tar.gz: 2bb28eae16c1d766a539d8101f3778c948ddbe0c0228e801ac55b143bf3a8d5185e1d07a2173d82f80a3ffb682cf15fa899ae112c9088a24cd95eea2505aa4ca
@@ -18,6 +18,7 @@
18
18
  - [#2](https://github.com/lumoslabs/broadside/issues/2): Add flag for changing loglevel, and add `--debug` switch that enables GLI debug output
19
19
  - Failed deploys will rollback the service to the last successfully running scale
20
20
  - Allow setting an environment variable `BROADSIDE_SYSTEM_CONFIG_FILE` to be used instead of `~/.broadside/config.rb`
21
+ - Pre and Post hooks now have access to command-line options and args
21
22
 
22
23
  #### General Improvements
23
24
  - Only load `env_files` for the selected target (rather than preloading from unrelated targets)
data/README.md CHANGED
@@ -41,8 +41,8 @@ Broadside.configure do |config|
41
41
  command: ['bundle', 'exec', 'puma'],
42
42
  env_file: '.env.staging',
43
43
  tag: 'latest', # Set a default tag for this target
44
- cluster: 'staging-cluster', # Overrides config.ecs.cluster
45
- docker_image: 'lumoslabs/staging_hello_world' # Overrides config.docker_image
44
+ cluster: 'staging-cluster', # Overrides config.aws.ecs_default_cluster
45
+ docker_image: 'lumoslabs/staging_hello_world' # Overrides config.default_docker_image
46
46
  },
47
47
  json_stream: {
48
48
  scale: 1,
@@ -3,7 +3,6 @@ require 'logger'
3
3
  module Broadside
4
4
  class Configuration
5
5
  include ActiveModel::Model
6
- include LoggingUtils
7
6
  include InvalidConfiguration
8
7
 
9
8
  attr_reader(
@@ -22,7 +21,7 @@ module Broadside
22
21
  )
23
22
 
24
23
  validates :application, :targets, :logger, presence: true
25
- validates_each(:aws) { |_, _, val| val.validate }
24
+ validates_each(:aws) { |_, _, val| raise ConfigurationError, val.errors.full_messages unless val.valid? }
26
25
 
27
26
  validates_each(:ssh) do |record, attr, val|
28
27
  record.errors.add(attr, 'is not a hash') unless val.is_a?(Hash)
@@ -1,9 +1,8 @@
1
1
  module Broadside
2
2
  module InvalidConfiguration
3
- extend LoggingUtils
4
-
5
3
  def method_missing(m, *args, &block)
6
- warn "Unknown configuration '#{m}' provided, ignoring."
4
+ message = "Unknown '#{m}' provided for #{is_a?(AwsConfiguration) ? 'configuration.aws' : 'configuration'}!"
5
+ raise ArgumentError, message
7
6
  end
8
7
  end
9
8
  end
@@ -66,7 +66,7 @@ module Broadside
66
66
  end
67
67
 
68
68
  raise ConfigurationError, errors.full_messages unless valid?
69
- warn "Target #{@name} was configured with invalid/unused options: #{config}" unless config.empty?
69
+ raise ConfigurationError, "Target #{@name} was configured with invalid options: #{config}" unless config.empty?
70
70
  end
71
71
 
72
72
  def ecs_env_vars
@@ -1,3 +1,3 @@
1
1
  module Broadside
2
- VERSION = '3.0.0-prerelease'.freeze
2
+ VERSION = '3.0.0'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: broadside
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.0.pre.prerelease
4
+ version: 3.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matthew Leung
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2017-02-10 00:00:00.000000000 Z
12
+ date: 2017-02-14 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activesupport
@@ -191,9 +191,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
191
191
  version: '0'
192
192
  required_rubygems_version: !ruby/object:Gem::Requirement
193
193
  requirements:
194
- - - ">"
194
+ - - ">="
195
195
  - !ruby/object:Gem::Version
196
- version: 1.3.1
196
+ version: '0'
197
197
  requirements: []
198
198
  rubyforge_project:
199
199
  rubygems_version: 2.5.2