Class: RubyDeployer::Runner
- Inherits:
-
Thor
- Object
- Thor
- RubyDeployer::Runner
- Defined in:
- lib/ruby_deployer/runner.rb
Instance Method Summary collapse
- #build ⇒ Object
- #deploy(artifact, environment) ⇒ Object
- #provision(environment) ⇒ Object
- #unprovision(environment) ⇒ Object
Instance Method Details
#build ⇒ Object
25 26 27 28 29 30 |
# File 'lib/ruby_deployer/runner.rb', line 25 def build requirements deploy_file = DeployFile.new(File.open('./Deployfile')) deploy_file.evaluate Builder.new(deploy_file).start end |
#deploy(artifact, environment) ⇒ Object
41 42 43 44 45 46 47 |
# File 'lib/ruby_deployer/runner.rb', line 41 def deploy(artifact, environment) requirements deploy_file = DeployFile.new(File.open('./Deployfile')) repository = FileSystemRepository.new deploy_file.evaluate Deployer.new(deploy_file, artifact, environment, repository).start end |
#provision(environment) ⇒ Object
33 34 35 36 37 38 |
# File 'lib/ruby_deployer/runner.rb', line 33 def provision(environment) requirements deploy_file = DeployFile.new(File.open('./Deployfile')) deploy_file.evaluate Provisioner.new(deploy_file, environment).start end |
#unprovision(environment) ⇒ Object
50 51 52 53 54 55 |
# File 'lib/ruby_deployer/runner.rb', line 50 def unprovision(environment) requirements deploy_file = DeployFile.new(File.open('./Deployfile')) deploy_file.evaluate Unprovisioner.new(deploy_file, environment).start end |