Sha256: 2481b77e2443e254f7a67c5cbcb7f8af69a04d0e4a52033aaec3082f5396dc13

Contents?: true

Size: 362 Bytes

Versions: 1

Compression:

Stored size: 362 Bytes

Contents

require 'cocaine'

module Anvil
  class Rubygems
    class << self
      def build(gemspec)
        line = Cocaine::CommandLine.new 'gem', 'build :gemspec'

        line.run gemspec: gemspec
      end

      def install(gem_file)
        line = Cocaine::CommandLine.new 'gem', 'install :gem_file'

        line.run gem_file: gem_file
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
anvil-core-0.0.1.alpha.1 lib/anvil/rubygems.rb