lib/octopus.rb in ar-octopus-0.0.22 vs lib/octopus.rb in ar-octopus-0.0.23
- old
+ new
@@ -10,12 +10,12 @@
end
def self.config()
@config ||= HashWithIndifferentAccess.new(YAML.load_file(Octopus.directory() + "/config/shards.yml"))
- if !@config[Octopus.env].nil? && @config[Octopus.env()]['excluded_enviroments']
- self.excluded_enviroments = @config[Octopus.env()]['excluded_enviroments']
+ if !@config[Octopus.env].nil? && @config[Octopus.env()]['octopus_enviroments']
+ self.octopus_enviroments = @config[Octopus.env()]['octopus_enviroments']
end
@config
end
@@ -30,15 +30,15 @@
# :excluded_enviroments => the enviroments that octopus will not run. default: :development, :cucumber and :test
def self.setup
yield self
end
- def self.excluded_enviroments=(excluded_enviroments)
- @excluded_enviroments = excluded_enviroments.map { |element| element.to_s }
+ def self.octopus_enviroments=(octopus_enviroments)
+ @octopus_enviroments = octopus_enviroments.map { |element| element.to_s }
end
- def self.excluded_enviroments
- @excluded_enviroments || ['development',"cucumber", "test"]
+ def self.octopus_enviroments
+ @octopus_enviroments || ['production']
end
def self.rails3?
ActiveRecord::VERSION::MAJOR == 3
end