class Dpl::Providers::Hephy

Constants

INSTALL

Public Instance Methods

add_key(key) click to toggle source
# File lib/dpl/providers/hephy.rb, line 55
def add_key(key)
  shell(:add_key, key:)
  wait_for_ssh_access(host, port)
end
builder() click to toggle source
# File lib/dpl/providers/hephy.rb, line 92
def builder
  parts = host.split('.')
  parts[0] = [parts[0], 'builder'].join('-')
  parts.join('.')
end
deploy() click to toggle source
# File lib/dpl/providers/hephy.rb, line 64
def deploy
  shell :deploy
end
host() click to toggle source
# File lib/dpl/providers/hephy.rb, line 80
def host
  url.host
end
install() click to toggle source
# File lib/dpl/providers/hephy.rb, line 43
def install
  shell :install
end
install_hephy_log_filter() click to toggle source
# File lib/dpl/providers/hephy.rb, line 102
def install_hephy_log_filter
  asset(:filter_log).copy('~/.dpl/')
end
login() click to toggle source
# File lib/dpl/providers/hephy.rb, line 51
def login
  shell :login
end
port() click to toggle source
# File lib/dpl/providers/hephy.rb, line 84
def port
  url.port
end
remove_key() click to toggle source
# File lib/dpl/providers/hephy.rb, line 72
def remove_key
  shell :remove_key
end
run_cmd(cmd) click to toggle source
# File lib/dpl/providers/hephy.rb, line 68
def run_cmd(cmd)
  shell :run, app:, cmd:
end
setup() click to toggle source
# File lib/dpl/providers/hephy.rb, line 47
def setup
  install_hephy_log_filter
end
url() click to toggle source
# File lib/dpl/providers/hephy.rb, line 88
def url
  @url ||= URI.parse("ssh://git@#{builder}:2222/#{app}.git")
end
validate() click to toggle source
# File lib/dpl/providers/hephy.rb, line 60
def validate
  shell :validate
end
verbose() click to toggle source
# File lib/dpl/providers/hephy.rb, line 76
def verbose
  verbose? ? '-v' : ''
end