paratrooper 1.1.2 → 1.1.3

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -82,7 +82,7 @@ This will create/update a `staging` git tag at `HEAD`
82
82
  ### Production example
83
83
  ```ruby
84
84
  Paratrooper::Deploy.new("amazing-production-app",
85
- tag: 'production'
85
+ tag: 'production',
86
86
  match_tag_to: 'staging'
87
87
  )
88
88
  ```
@@ -119,8 +119,8 @@ namespace :deploy do
119
119
 
120
120
  desc 'Deploy app in production environment'
121
121
  task :production do
122
- Paratrooper::Deploy.new("amazing-production-app",
123
- tag: 'production'
122
+ deployment = Paratrooper::Deploy.new("amazing-production-app",
123
+ tag: 'production',
124
124
  match_tag_to: 'staging'
125
125
  )
126
126
 
@@ -143,8 +143,8 @@ require 'paratrooper'
143
143
  namespace :deploy do
144
144
  desc 'Deploy app in production environment'
145
145
  task :production do
146
- Paratrooper::Deploy.new("amazing-production-app",
147
- tag: 'production'
146
+ deployment = Paratrooper::Deploy.new("amazing-production-app",
147
+ tag: 'production',
148
148
  match_tag_to: 'staging'
149
149
  )
150
150
 
@@ -30,7 +30,7 @@ module Paratrooper
30
30
  unless tag_name.nil? || tag_name.empty?
31
31
  notify_screen("Updating Repo Tag: #{tag_name}")
32
32
  system_call "git tag #{tag_name} #{match_tag} -f"
33
- system_call "git push origin #{tag_name}"
33
+ system_call "git push -f origin #{tag_name}"
34
34
  end
35
35
  end
36
36
 
@@ -1,3 +1,3 @@
1
1
  module Paratrooper
2
- VERSION = "1.1.2"
2
+ VERSION = "1.1.3"
3
3
  end
@@ -124,7 +124,7 @@ describe Paratrooper::Deploy do
124
124
  end
125
125
 
126
126
  it 'pushes git tag' do
127
- system_caller.should_receive(:execute).with('git push origin awesome')
127
+ system_caller.should_receive(:execute).with('git push -f origin awesome')
128
128
  deployer.update_repo_tag
129
129
  end
130
130
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: paratrooper
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.2
4
+ version: 1.1.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2013-02-13 00:00:00.000000000 Z
13
+ date: 2013-02-20 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rake