Class: Promote::RakeTasks
- Inherits:
-
Rake::TaskLib
- Object
- Rake::TaskLib
- Promote::RakeTasks
- Defined in:
- lib/promote/rake_tasks.rb
Instance Method Summary collapse
-
#initialize(config) {|_self| ... } ⇒ RakeTasks
constructor
A new instance of RakeTasks.
Constructor Details
#initialize(config) {|_self| ... } ⇒ RakeTasks
Returns a new instance of RakeTasks.
8 9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/promote/rake_tasks.rb', line 8 def initialize(config) config = Config.new(config) if config.is_a?(Hash) config = Config.new({ :repo_root => config }) if config.is_a?(String) @versioner = Versioner.new(config) yield self if block_given? define_version_cookbook define_version_cookbooks define_version_environment define_version_environments define_version_data_bag define_version_data_bags end |