Sha256: a1605370e65e439db45cee0c36d510b07d12e5c0d9b1b3110e13472750df4da3
Contents?: true
Size: 759 Bytes
Versions: 10
Compression:
Stored size: 759 Bytes
Contents
# encoding: UTF-8 require 'cocaine' module Anvil # Rubygems wrapper for common commands class Rubygems class << self # Runs gem build for a gemspec # # @param gemspec [String] The gemspec's filename def build(gemspec) line = Cocaine::CommandLine.new 'gem', 'build :gemspec' line.run gemspec: gemspec end # Runs gem install for a gem file # # @param gem_file [String] The gems' filename def install(gem_file) line = Cocaine::CommandLine.new 'gem', 'install :gem_file' line.run gem_file: gem_file end def push(gem_file) line = Cocaine::CommandLine.new 'gem', 'push :gem_file' line.run gem_file: gem_file end end end end
Version data entries
10 entries across 10 versions & 1 rubygems