class Luban::Deployment::Application::Worker

Public Instance Methods

bundle_command(cmd, **opts) click to toggle source
# File lib/luban/deployment/cli/application/worker.rb, line 47
def bundle_command(cmd, **opts)
  shell_command("#{bundle_executable} exec #{cmd}", **opts)
end
bundle_executable() click to toggle source
# File lib/luban/deployment/cli/application/worker.rb, line 43
def bundle_executable
  @bundle_executable ||= ruby_bin_path.join('bundle')
end
docker_path() click to toggle source
# File lib/luban/deployment/cli/application/worker.rb, line 23
def docker_path
  @docker_path ||= docker_root_path.join(project, application)
end
gemfile() click to toggle source
# File lib/luban/deployment/cli/application/worker.rb, line 9
def gemfile
  @gemfile ||= release_path.join('Gemfile')
end
has_gemfile?() click to toggle source
# File lib/luban/deployment/cli/application/worker.rb, line 13
def has_gemfile?; file?(gemfile); end
profile_name() click to toggle source
# File lib/luban/deployment/cli/application/worker.rb, line 27
def profile_name; 'app'; end
release_path() click to toggle source
# File lib/luban/deployment/cli/application/worker.rb, line 35
def release_path
  @release_path ||= releases_path.join(release_tag)
end
release_tag() click to toggle source
# File lib/luban/deployment/cli/application/worker.rb, line 29
def release_tag; task.opts.release[:tag]; end
releases_path() click to toggle source
# File lib/luban/deployment/cli/application/worker.rb, line 31
def releases_path
  @releases_path ||= releases_root_path.join("#{stage}.#{project}", application, 'app')
end
ruby_bin_path() click to toggle source
# File lib/luban/deployment/cli/application/worker.rb, line 39
def ruby_bin_path
  @ruby_bin_path ||= package_bin_path('ruby')
end
shell_setup() click to toggle source
# File lib/luban/deployment/cli/application/worker.rb, line 15
def shell_setup
  @shell_setup ||= super << "cd #{release_path}"
end