class Contracto::Command::Start::Remote

Public Class Methods

new(repo_url) click to toggle source
# File lib/contracto/command/start/remote.rb, line 2
def initialize(repo_url)
  Contracto::Config.repo_url = repo_url
end

Public Instance Methods

execute() click to toggle source
# 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

Private Instance Methods

actions() click to toggle source
# File lib/contracto/command/start/remote.rb, line 13
def actions
  [
    :clone_repo,
    :start_server
  ]
end