Skip to content

Commit

Permalink
FLAPJACK_ENV left in test code, removed elsewhere (expect email.rb wh…
Browse files Browse the repository at this point in the history
…ere it is required).
  • Loading branch information
ferrisoxide committed Oct 30, 2014
1 parent 8baaacb commit c72b8fe
Show file tree
Hide file tree
Showing 11 changed files with 10 additions and 10 deletions.
1 change: 1 addition & 0 deletions features/support/env.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
require 'i18n'
I18n.config.enforce_available_locales = true

FLAPJACK_ENV = 'test'
FLAPJACK_ROOT = File.join(File.dirname(__FILE__), '..', '..')
FLAPJACK_CONFIG = File.join(FLAPJACK_ROOT, 'etc', 'flapjack_config.toml')

Expand Down
2 changes: 1 addition & 1 deletion lib/flapjack/cli/import.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def initialize(global_options, options)
@config_env = config.all

if @config_env.nil? || @config_env.empty?
exit_now! "No config data for environment '#{FLAPJACK_ENV}' found in '#{global_options[:config]}'"
exit_now! "No config data found in '#{global_options[:config]}'"
end

Flapjack::RedisProxy.config = config.for_redis
Expand Down
2 changes: 1 addition & 1 deletion lib/flapjack/cli/maintenance.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def initialize(global_options, options)
@config_env = config.all

if @config_env.nil? || @config_env.empty?
exit_now! "No config data for environment '#{FLAPJACK_ENV}' found in '#{global_options[:config]}'"
exit_now! "No config data found in '#{global_options[:config]}'"
end

Flapjack::RedisProxy.config = config.for_redis
Expand Down
2 changes: 1 addition & 1 deletion lib/flapjack/cli/purge.rb
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def initialize(global_options, options)
@config_env = config.all

if @config_env.nil? || @config_env.empty?
exit_now! "No config data for environment '#{FLAPJACK_ENV}' found in '#{global_options[:config]}'"
exit_now! "No config data found in '#{global_options[:config]}'"
end

Flapjack::RedisProxy.config = config.for_redis
Expand Down
2 changes: 1 addition & 1 deletion lib/flapjack/cli/receiver.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def initialize(global_options, options)
@config_env = @config.all

if @config_env.nil? || @config_env.empty?
exit_now! "No config data for environment '#{FLAPJACK_ENV}' found in '#{global_options[:config]}'"
exit_now! "No config data found in '#{global_options[:config]}'"
end

Flapjack::RedisProxy.config = @config.for_redis
Expand Down
2 changes: 1 addition & 1 deletion lib/flapjack/cli/server.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def initialize(global_options, options)
@config_env = @config.all

if @config_env.nil? || @config_env.empty?
exit_now! "No config data for environment '#{FLAPJACK_ENV}' found in '#{global_options[:config]}'"
exit_now! "No config data found in '#{global_options[:config]}'"
end

@pidfile = case
Expand Down
2 changes: 1 addition & 1 deletion lib/flapjack/cli/simulate.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def initialize(global_options, options)
@config_env = config.all

if @config_env.nil? || @config_env.empty?
exit_now! "No config data for environment '#{FLAPJACK_ENV}' found in '#{global_options[:config]}'"
exit_now! "No config data found in '#{global_options[:config]}'"
end

Flapjack::RedisProxy.config = config.for_redis
Expand Down
Empty file modified lib/flapjack/gateways/email.rb
100644 → 100755
Empty file.
2 changes: 1 addition & 1 deletion tasks/benchmarks.rake
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ namespace :benchmarks do
@redis = Redis.new(config.for_redis)

if @config_env.nil? || @config_env.empty?
puts "No config data for environment '#{FLAPJACK_ENV}' found in '#{config_file}'"
puts "No config data found in '#{config_file}'"
exit(false)
end
end
Expand Down
2 changes: 1 addition & 1 deletion tasks/events.rake
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ namespace :events do
@redis_config = config.for_redis

if @config_env.nil? || @config_env.empty?
puts "No config data for environment '#{FLAPJACK_ENV}' found in '#{config_file}'"
puts "No config data found in '#{config_file}'"
exit(false)
end

Expand Down
3 changes: 1 addition & 2 deletions tasks/profile.rake
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,7 @@ namespace :profile do
config.load(FLAPJACK_CONFIG)
config_env = config.all
if config_env.nil? || config_env.empty?
puts "No config data for environment '#{FLAPJACK_ENV}' " +
"found in '#{FLAPJACK_CONFIG}'"
puts "No config data found in '#{FLAPJACK_CONFIG}'"
exit(false)
end

Expand Down

0 comments on commit c72b8fe

Please sign in to comment.