Class: Composer::Deploy::Heirloom
- Inherits:
-
Object
- Object
- Composer::Deploy::Heirloom
- Defined in:
- lib/composer/deploy/heirloom.rb
Instance Method Summary collapse
-
#initialize(args) ⇒ Heirloom
constructor
A new instance of Heirloom.
- #upload(args) ⇒ Object
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 |