Sha256: 671cff975e380129bb523fd40467d462e94d13deb19cef24a0f709aa41cbce1c
Contents?: true
Size: 699 Bytes
Versions: 2
Compression:
Stored size: 699 Bytes
Contents
require 'pathname' require 'fileutils' module Sshster module Actions class Base attr_accessor :config def initialize(config) @config = config end def run; end private def config_path @config_path ||= root_path.join('config') end def origin_config_path @origin_config_path ||= root_path.join('config.orig') end def projects_path @projects_path ||= root_path.join('sshster') end def sshster_config_path @sshster_config_path ||= root_path.join('sshster.yml') end def root_path @root_path ||= Pathname.new(config['ssh_config']) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
sshster-0.1.1 | lib/sshster/actions/base.rb |
sshster-0.1.0 | lib/sshster/actions/base.rb |