Sha256: 5599f5025d83109008ab220200769aad29e716546ac84bf23957ff156128adbe
Contents?: true
Size: 983 Bytes
Versions: 2
Compression:
Stored size: 983 Bytes
Contents
require 'os' require "packer/binary/version" require 'packer/binary/helpers' require 'packer/binary/compressor' require 'packer/binary/executable' require 'packer/binary/command' module Packer module Binary module_function attr_writer :config def config @config ||= Configuration.new end def configure yield(config) end def Build(opts = '') Command.run("build #{opts}") end def Fix(opts = '') Command.run("fix #{opts}") end def Inspect(opts = '') Command.run("inspect #{opts}") end def Push(opts = '') Command.run("push #{opts}") end def Validate(opts = '') Command.run("validate #{opts}") end def Version(opts = '') Command.run("version #{opts}") end class Configuration attr_accessor :version attr_accessor :download_path def initialize @version = '1.0.4' @download_path = '/tmp' end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
packer-binary-0.1.1 | lib/packer/binary.rb |
packer-binary-0.1.0 | lib/packer/binary.rb |