Sha256: a0fc52c2a56cd5b1b5f75d2c93df6f76e03a750d773887961b7be328e86cfb2d
Contents?: true
Size: 622 Bytes
Versions: 1
Compression:
Stored size: 622 Bytes
Contents
require 'bukin/lockfile' class Bukin::Installer def initialize(path, use_lockfile = false) if use_lockfile @lockfile = Bukin::Lockfile.new end @paths = { server: path, plugin: "#{path}/plugins" } end def install(type, provider, data) unless @paths.keys.include?(type) raise(ArgumentError, "You must specify one of the following types to install: #{@paths.keys.to_s}") end file_data, file_name = download_file(data[:download]) save_download(file_data, file_name, @paths[type]) if @lockfile data[:file] = file_name @lockfile.add(type, data) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
bukin-0.3.0 | lib/bukin/installer.rb |