Class: Promote::RakeTasks

Inherits:
Rake::TaskLib
  • Object
show all
Defined in:
lib/promote/rake_tasks.rb

Instance Method Summary collapse

Constructor Details

#initialize(config) {|_self| ... } ⇒ RakeTasks

Returns a new instance of RakeTasks.

Yields:

  • (_self)

Yield Parameters:


8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# 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)
  @config=config
  @versioner = Versioner.new(@config)
  @uploader = Uploader.new(@config)
  @promoter = Promoter.new(@config)
  yield self if block_given?
  define_constrain_environment
  define_promote_environment
  define_promote_environments
  define_sync_berksfile
  define_sync_berksfiles
  define_upload_cookbook
  define_upload_cookbooks
  define_upload_data_bags
  define_upload_environment
  define_upload_roles
  define_version_cookbook
  define_version_cookbooks
  define_version_environment
  define_version_environments
  define_version_role
  define_version_roles
end