Module: Librarian::Source::BasicApi::ClassMethods
- Defined in:
- lib/librarian/source/basic_api.rb
Instance Method Summary collapse
- #from_lock_options(environment, options) ⇒ Object
- #from_spec_args(environment, param, options) ⇒ Object
Instance Method Details
#from_lock_options(environment, options) ⇒ Object
29 30 31 |
# File 'lib/librarian/source/basic_api.rb', line 29 def (environment, ) new(environment, [:remote], .reject{|k, v| k == :remote}) end |
#from_spec_args(environment, param, options) ⇒ Object
33 34 35 36 37 38 39 40 |
# File 'lib/librarian/source/basic_api.rb', line 33 def from_spec_args(environment, param, ) = = .keys - .empty? or raise Error, "unrecognized options: #{.join(", ")}" new(environment, param, ) end |