Sha256: 47c6e6aed729d295bd9ea19a109e6bcb9a6f3724cae0b900fefbde8dc5aa59c0
Contents?: true
Size: 813 Bytes
Versions: 10
Compression:
Stored size: 813 Bytes
Contents
require 'logger' require 'canals/core' # a gem for managing ssh tunnel connections module Canals extend self autoload :Repository, "canals/repository" autoload :Session, "canals/session" autoload :Config, 'canals/config' autoload :Version, 'canals/version' attr_accessor :logger def config return @config if defined?(@config) @config = Config.new(File.join(Dir.home, '.canals')) end def repository return @repository if defined?(@repository) @repository = Repository.new end def environments return @repository.environments if defined?(@repository) @repository = Repository.new @repository.environments end def session return @session if defined?(@session) @session = Session.new end end # default logger Canals.logger = Logger.new(STDERR)
Version data entries
10 entries across 10 versions & 1 rubygems