lib/librarian/source/path.rb in librarian-0.0.25 vs lib/librarian/source/path.rb in librarian-0.0.26

- old
+ new

@@ -1,33 +1,15 @@ +require 'librarian/source/basic_api' require 'librarian/source/local' module Librarian module Source class Path - + include BasicApi include Local - class << self - - LOCK_NAME = 'PATH' - - def lock_name - LOCK_NAME - end - - def from_lock_options(environment, options) - new(environment, options[:remote], options.reject{|k, v| k == :remote}) - end - - def from_spec_args(environment, path, options) - recognized_options = [] - unrecognized_options = options.keys - recognized_options - unrecognized_options.empty? or raise Error, "unrecognized options: #{unrecognized_options.join(", ")}" - - new(environment, path, options) - end - - end + lock_name 'PATH' + spec_options [] attr_accessor :environment private :environment= attr_reader :path