Class: Contracto::Command::Start::Remote
- Inherits:
-
Object
- Object
- Contracto::Command::Start::Remote
- Defined in:
- lib/contracto/command/start/remote.rb
Instance Method Summary collapse
- #execute ⇒ Object
-
#initialize(repo_url) ⇒ Remote
constructor
A new instance of Remote.
Constructor Details
#initialize(repo_url) ⇒ Remote
Returns a new instance of Remote.
2 3 4 |
# File 'lib/contracto/command/start/remote.rb', line 2 def initialize(repo_url) Contracto::Config.repo_url = repo_url end |
Instance Method Details
#execute ⇒ Object
6 7 8 9 |
# File 'lib/contracto/command/start/remote.rb', line 6 def execute puts "downloading contract from #{Contracto::Config.repo_url} to #{Contracto::Config.root_dir}" Contracto::SystemActionChain.new(*actions).execute end |