Sha256: dc12a1b1c24d1b3d198271253467c171338ac03553878c2a24bdde55a4e0da37

Contents?: true

Size: 548 Bytes

Versions: 2

Compression:

Stored size: 548 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 => ENV['PW_ENV'] || 'production')

# 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

2 entries across 2 versions & 1 rubygems

Version Path
pushwagner-0.0.1.5 bin/pw
pushwagner-0.0.1.4 bin/pw