class Vpsb::Commands::Deploy
Attributes
core[R]
Public Class Methods
new(core)
click to toggle source
# File lib/vpsb/commands/deploy.rb, line 5 def initialize(core) @core = core end
Public Instance Methods
execute(params)
click to toggle source
# File lib/vpsb/commands/deploy.rb, line 9 def execute(params) Vpsb::Tasks::DeployConfig.new(core).call puts "Start deploying app." run(core.get(:rails_app_path), 'bundle exec cap production deploy') puts "app is ready! Visit #{core.get(:do_host_ip)}" end
Private Instance Methods
run(where, what)
click to toggle source
# File lib/vpsb/commands/deploy.rb, line 20 def run(where, what) system("cd #{where} && #{what}") end