class Sshster::Actions::Base

Attributes

config[RW]

Public Class Methods

new(config) click to toggle source
# File lib/sshster/actions/base.rb, line 9
def initialize(config)
  @config = config
end

Public Instance Methods

run() click to toggle source
# File lib/sshster/actions/base.rb, line 13
def run; end

Private Instance Methods

config_path() click to toggle source
# File lib/sshster/actions/base.rb, line 17
def config_path
  @config_path ||= root_path.join('config')
end
origin_config_path() click to toggle source
# File lib/sshster/actions/base.rb, line 21
def origin_config_path
  @origin_config_path ||= root_path.join('config.orig')
end
projects_path() click to toggle source
# File lib/sshster/actions/base.rb, line 25
def projects_path
  @projects_path ||= root_path.join('sshster')
end
root_path() click to toggle source
# File lib/sshster/actions/base.rb, line 33
def root_path
  @root_path ||= Pathname.new(config['ssh_config'])
end
sshster_config_path() click to toggle source
# File lib/sshster/actions/base.rb, line 29
def sshster_config_path
  @sshster_config_path ||= root_path.join('sshster.yml')
end