Class: RubyDeployer::Builder

Inherits:
Object
  • Object
show all
Defined in:
lib/ruby_deployer/builder.rb

Instance Method Summary collapse

Constructor Details

#initialize(deploy_file) ⇒ Builder

Returns a new instance of Builder.



3
4
5
# File 'lib/ruby_deployer/builder.rb', line 3

def initialize deploy_file
  @deploy_file = deploy_file
end

Instance Method Details

#startObject



7
8
9
10
11
12
13
# File 'lib/ruby_deployer/builder.rb', line 7

def start
  puts 'Building...'
  @deploy_file.artifacts.each do |name, artifact|
    file = package name, artifact
    artifact.publish File.open(file)
  end
end