Class: Composer::Deploy::Heirloom

Inherits:
Object
  • Object
show all
Defined in:
lib/composer/deploy/heirloom.rb

Instance Method Summary collapse

Constructor Details

#initialize(args) ⇒ Heirloom

Returns a new instance of Heirloom.



4
5
6
7
# File 'lib/composer/deploy/heirloom.rb', line 4

def initialize(args)
  @config = args[:config]
  @logger = @config.logger
end

Instance Method Details

#upload(args) ⇒ Object



9
10
11
12
13
14
15
16
17
18
# File 'lib/composer/deploy/heirloom.rb', line 9

def upload(args)
  @directory = args[:directory]
  @force     = args[:force]
  @name      = args[:name]
  @secret    = args[:secret]

  ["chef-repo", "app"].each do |heirloom|
    upload_heirloom heirloom
  end
end