module Mina::Ssh

Constants

STAGES_DIR
VERSION

Public Class Methods

connect!() click to toggle source
# File lib/mina/ssh.rb, line 10
def connect!
  user = variable.name
  domain = variable.domain

  exec("ssh #{user}@#{domain}")
end
load_environment_config(environment) click to toggle source
# File lib/mina/ssh.rb, line 19
def load_environment_config(environment)
  load "#{STAGES_DIR}/#{environment}.rb"
end
variable() click to toggle source
# File lib/mina/ssh.rb, line 27
def variable
  @variable ||= OpenStruct.new(Mina::Configuration.instance.variables)
end

Private Instance Methods

connect!() click to toggle source
# File lib/mina/ssh.rb, line 10
def connect!
  user = variable.name
  domain = variable.domain

  exec("ssh #{user}@#{domain}")
end
load_environment_config(environment) click to toggle source
# File lib/mina/ssh.rb, line 19
def load_environment_config(environment)
  load "#{STAGES_DIR}/#{environment}.rb"
end
variable() click to toggle source
# File lib/mina/ssh.rb, line 27
def variable
  @variable ||= OpenStruct.new(Mina::Configuration.instance.variables)
end