pushwagner 0.0.1.5 → 0.0.1.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. data/bin/pw +4 -2
  2. data/lib/pushwagner/version.rb +1 -1
  3. metadata +1 -1
data/bin/pw CHANGED
@@ -10,7 +10,9 @@ end
10
10
  # TODO: detect version requirement from config
11
11
  version = 1 # ENV["VERSION"] || get_version
12
12
 
13
- main = Pushwagner::Main.new(:config_file => 'config/deploy.yml', :version => version, :environment => ENV['PW_ENV'] || 'production')
13
+ env = ARGV[1] || ENV['PW_ENV'] || 'production'
14
+
15
+ main = Pushwagner::Main.new(:config_file => 'config/deploy.yml', :version => version, :environment => env)
14
16
 
15
17
  # TODO: detect cli from config
16
18
  case ARGV[0]
@@ -22,5 +24,5 @@ case ARGV[0]
22
24
  main.restart
23
25
 
24
26
  else
25
- puts "Usage: pw <deploy|restart>"
27
+ puts "Usage: pw <deploy|restart> [environment]"
26
28
  end
@@ -1,3 +1,3 @@
1
1
  module Pushwagner
2
- VERSION = "0.0.1.5"
2
+ VERSION = "0.0.1.6"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pushwagner
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1.5
4
+ version: 0.0.1.6
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: