Sha256: f4b21ca135578df1104f121b21566372e3b9f5cdd6b629d31ec80670f018a571
Contents?: true
Size: 459 Bytes
Versions: 29
Compression:
Stored size: 459 Bytes
Contents
class Indocker::Repositories::Local < Indocker::Repositories::Abstract attr_reader :root_path def setup(root_path) @root_path = File.expand_path(root_path) self end def project_name root_path.split('/').last end def root_path @root_path || (raise ArgumentError.new("root path was not set. Set it using setup method")) end def clone_path "/tmp/#{Indocker.configuration.name}/repositories/local/#{project_name}" end end
Version data entries
29 entries across 29 versions & 1 rubygems