lib/configliere.rb in configliere-0.2.3 vs lib/configliere.rb in configliere-0.3.0
- old
+ new
@@ -8,14 +8,19 @@
# delegates to Configliere::Param
def self.new *args, &block
Configliere::Param.new(*args, &block)
end
- ALL_MIXINS = [:define, :config_file, :commandline, :encrypted, :env_var, :config_block, :git_style_binaries]
+ ALL_MIXINS = [:define, :config_file, :commandline, :encrypted, :env_var, :config_block, :commands]
def self.use *mixins
mixins = ALL_MIXINS if mixins.include?(:all) || mixins.empty?
mixins.each do |mixin|
- require "configliere/#{mixin}"
+ # backwards compatibility
+ if mixin.to_sym == :git_style_binaries
+ require "configliere/commands"
+ else
+ require "configliere/#{mixin}"
+ end
end
end
# Base class for Configliere errors.
Error = Class.new(StandardError)