Class: RubyDeployer::Builder
- Inherits:
-
Object
- Object
- RubyDeployer::Builder
- Defined in:
- lib/ruby_deployer/builder.rb
Instance Method Summary collapse
-
#initialize(deploy_file) ⇒ Builder
constructor
A new instance of Builder.
- #start ⇒ Object
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
#start ⇒ Object
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 |