module Dokku
Constants
- VERSION
Attributes
configuration[W]
Public Class Methods
config() { |configuration| ... }
click to toggle source
# File lib/dokku.rb, line 20 def self.config yield(configuration) SSHKit::Backend::Netssh.configure do |ssh| unless configuration.ssh_options.nil? ssh.ssh_options = configuration.ssh_options end end end
configuration()
click to toggle source
# File lib/dokku.rb, line 16 def self.configuration @configuration ||= Configuration.new end
ssh_target()
click to toggle source
# File lib/dokku.rb, line 41 def self.ssh_target user = configuration.user host = configuration.host if user.nil? || user == '' raise MissingUserError, 'User not set. Did you add it to the configuration?' end if host.nil? || host == '' raise MissingHostError, 'Host is not set. Did you add it to the configuration?' end "#{user}@#{host}" end
start_session!() { |dsl| ... }
click to toggle source
# File lib/dokku.rb, line 34 def self.start_session! on ssh_target do # self is an SSH context yield Dokku::DSL.new(self) end end