Sha256: 643e31547dc781871e925d364312f03a7ad5a00e5dcfc2c1fc42668cb5739b33

Contents?: true

Size: 527 Bytes

Versions: 4

Compression:

Stored size: 527 Bytes

Contents

#!/usr/bin/env ruby

require 'pushwagner'

def get_version
  puts "You must specify which version you wish to deploy: "
  STDIN.gets.strip
end

# TODO: detect version requirement from config
version = 1 # ENV["VERSION"] || get_version

main = Pushwagner::Main.new(:config_file => 'config/deploy.yml', :version => version, :environment => 'staging')

# TODO: detect cli from config
case ARGV[0]
  when "deploy"
    main.deploy
    main.restart

  when "restart"
    main.restart

  else
    puts "Usage: pw <deploy|restart>"
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
pushwagner-0.0.1.3 bin/pw
pushwagner-0.0.1.2 bin/pw
pushwagner-0.0.1.1 bin/pw
pushwagner-0.0.1 bin/pw