grifter 0.0.7 → 0.0.8

Sign up to get free protection for your applications and to get access to all the features.
data/bin/grift CHANGED
@@ -33,7 +33,7 @@ def parse_cmd_line
33
33
  opts.on("-v", "--verbose",
34
34
  "debug logging, see every request and response in detail") { Log.level = Logger::DEBUG }
35
35
 
36
- opts.on("-q", "--verbose",
36
+ opts.on("-q", "--quiet",
37
37
  "quiet logging, warnings and errors only") { Log.level = Logger::WARN }
38
38
 
39
39
  opts.on("-c", "--config=FILENAME",
@@ -42,7 +42,7 @@ def parse_cmd_line
42
42
  opts.on('-e', '--environment=ENVIRONMENT',
43
43
  "environment name") { |e| options[:environment] = e.to_sym }
44
44
 
45
- opts.on("-n", "--no_authenticate",
45
+ opts.on("-n", "--no-authenticate",
46
46
  "Do not authenticate") { options[:authenticate] = false }
47
47
 
48
48
  end
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "grifter"
8
- s.version = "0.0.7"
8
+ s.version = "0.0.8"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Robert Schultheis"]
@@ -69,17 +69,18 @@ class Grifter
69
69
 
70
70
  #merge any environment overrides into the service block
71
71
  if options[:environment]
72
- options[:environment] = options[:environment].to_sym
73
- unless config[:environments] && config[:environments][options[:environment]]
74
- raise GrifterConfigurationError.new "No such environment specified in config: '#{options[:environment]}'"
72
+ config[:environment] = options[:environment].to_sym
73
+ unless config[:environments] && config[:environments][config[:environment]]
74
+ raise GrifterConfigurationError.new "No such environment specified in config: '#{config[:environment]}'"
75
75
  end
76
76
 
77
- config[:environments][options[:environment]].each_pair do |service_name, service_overrides|
77
+ config[:environments][config[:environment]].each_pair do |service_name, service_overrides|
78
78
  config[:services][service_name].merge! service_overrides
79
79
  end
80
+ else
81
+ config[:environment] = :undefined
80
82
  end
81
83
 
82
-
83
84
  return config
84
85
  end
85
86
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: grifter
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.7
4
+ version: 0.0.8
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -127,7 +127,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
127
127
  version: '0'
128
128
  segments:
129
129
  - 0
130
- hash: -3913779012589088208
130
+ hash: -2836288389704495827
131
131
  required_rubygems_version: !ruby/object:Gem::Requirement
132
132
  none: false
133
133
  requirements: