Sha256: b13412102181ca62306dba7a6322fc98cff4e502fb4ee523ee211d89ecfb47af

Contents?: true

Size: 667 Bytes

Versions: 1

Compression:

Stored size: 667 Bytes

Contents

#!/usr/bin/env ruby

require_relative '../lib/steam'

# bin/publish

class Publish

  def start # version, rvm=false
    # system "rvm use #{rvm}"

    system "bundle && bundle exec rspec"
    system "gem build locomotivecms_steam.gemspec"
    system "git tag -a v#{Locomotive::Steam::VERSION} -m 'version #{Locomotive::Steam::VERSION}'"
    system "git push --tags"
    system "gem push locomotivecms_steam-#{Locomotive::Steam::VERSION}.gem"
    system "git push origin master"
  end

end

# if ARGV.length != 1 # or !ARGV[0].match(/\d{1,3}.\d{1,3}.\d{1,3}/)
#   puts 'HELP: '
#   puts '$ bin/publish [ruby-2.1.1@steam]'
#   exit 0
# end

Publish.new.start # ARGV[0]

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
locomotivecms_steam-0.1.1 bin/publish