Class: Papa::CLI::Integration
Instance Method Summary collapse
Methods inherited from Thor
Instance Method Details
#add ⇒ Object
18 19 20 21 22 23 24 |
# File 'lib/papa/cli/integration.rb', line 18 def add version = [:version] branches = [:branches] || [] require 'papa/task/integration/add' Task::Integration::Add.new(version, branches).run end |
#deploy ⇒ Object
29 30 31 32 33 34 35 36 37 |
# File 'lib/papa/cli/integration.rb', line 29 def deploy version = [:version] # Renamed to subdomain because `-h` is already assigned to `papa integration help`. # Will still be referred to as `hostname` from here onwards. hostname = [:subdomain] require 'papa/task/integration/deploy' Task::Integration::Deploy.new(version, hostname).run end |
#start ⇒ Object
7 8 9 10 11 12 13 |
# File 'lib/papa/cli/integration.rb', line 7 def start base_branch = [:base_branch] = { override_branch_name: [:override_branch_name] } require 'papa/task/integration/start' Task::Integration::Start.new(base_branch, ).run end |