class Anvil::Rubygems

Rubygems wrapper for common commands

Public Class Methods

build(gemspec) click to toggle source

Runs gem build for a gemspec

@param gemspec [String] The gemspec's filename

# File lib/anvil/rubygems.rb, line 12
def build(gemspec)
  line = Cocaine::CommandLine.new 'gem', 'build :gemspec'

  line.run gemspec: gemspec
end
install(gem_file) click to toggle source

Runs gem install for a gem file

@param gem_file [String] The gems' filename

# File lib/anvil/rubygems.rb, line 21
def install(gem_file)
  line = Cocaine::CommandLine.new 'gem', 'install :gem_file'

  line.run gem_file: gem_file
end
push(gem_file) click to toggle source
# File lib/anvil/rubygems.rb, line 27
def push(gem_file)
  line = Cocaine::CommandLine.new 'gem', 'push :gem_file'

  line.run gem_file: gem_file
end