# File lib/librarian/puppet/source/githubtarball.rb, line 174 def from_lock_options(environment, options) new(environment, options[:remote], options.reject { |k, v| k == :remote }) end
# File lib/librarian/puppet/source/githubtarball.rb, line 178 def from_spec_args(environment, uri, options) recognised_options = [] unrecognised_options = options.keys - recognised_options unless unrecognised_options.empty? raise Error, "unrecognised options: #{unrecognised_options.join(", ")}" end new(environment, uri, options) end
# File lib/librarian/puppet/source/githubtarball.rb, line 203 def ==(other) other && self.class == other.class && self.uri == other.uri end
# File lib/librarian/puppet/source/githubtarball.rb, line 248 def cache_path @cache_path ||= begin dir = Digest::MD5.hexdigest(uri) environment.cache_path.join("source/puppet/githubtarball/#{dir}") end end
# File lib/librarian/puppet/source/githubtarball.rb, line 268 def fetch_dependencies(name, version, version_uri) {} end
# File lib/librarian/puppet/source/githubtarball.rb, line 259 def fetch_version(name, version_uri) versions = repo(name).versions if versions.include? version_uri version_uri else versions.first end end
# File lib/librarian/puppet/source/githubtarball.rb, line 211 def hash self.to_s.hash end
# File lib/librarian/puppet/source/githubtarball.rb, line 230 def install!(manifest) manifest.source == self or raise ArgumentError name = manifest.name version = manifest.version install_path = install_path(name) repo = repo(name) repo.install_version! version, install_path end
# File lib/librarian/puppet/source/githubtarball.rb, line 255 def install_path(name) environment.install_path.join(name.split('/').last) end
# File lib/librarian/puppet/source/githubtarball.rb, line 241 def manifest(name, version, dependencies) manifest = Manifest.new(self, name) manifest.version = version manifest.dependencies = dependencies manifest end
# File lib/librarian/puppet/source/githubtarball.rb, line 272 def manifests(name) repo(name).manifests end
# File lib/librarian/puppet/source/githubtarball.rb, line 223 def pinned? false end
# File lib/librarian/puppet/source/githubtarball.rb, line 219 def to_lock_options {:remote => uri} end
# File lib/librarian/puppet/source/githubtarball.rb, line 199 def to_s uri end
Generated with the Darkfish Rdoc Generator 2.