kstrano 1.0.4 → 1.0.5

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 (2) hide show
  1. data/lib/kstrano.rb +10 -10
  2. metadata +2 -2
data/lib/kstrano.rb CHANGED
@@ -242,24 +242,24 @@ after "deploy:finalize_update" do
242
242
  kuma.apc.clear
243
243
  end
244
244
 
245
- # Ensure a stage is specificaly selected
246
- on :start do
247
- if !stages.include?(ARGV.first)
248
- Capistrano::CLI.ui.say("You need to select one of the stages first (cap <#{stages.join('|')}> #{ARGV.first})")
249
- exit
250
- end
251
- end
252
-
253
- before :deploy do
245
+ before "deploy:update" do
254
246
  Kumastrano.say "executing ssh-add"
255
247
  %x(ssh-add)
256
-
248
+
257
249
  kuma.changelog
258
250
  if !Kumastrano.ask "Are you sure you want to continue deploying?", "y"
259
251
  exit
260
252
  end
261
253
  end
262
254
 
255
+ # Ensure a stage is specificaly selected
256
+ on :start do
257
+ if !stages.include?(ARGV.first)
258
+ Capistrano::CLI.ui.say("You need to select one of the stages first (cap <#{stages.join('|')}> #{ARGV.first})")
259
+ exit
260
+ end
261
+ end
262
+
263
263
  after :deploy do
264
264
  kuma.fix.cron
265
265
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kstrano
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.4
4
+ version: 1.0.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-02-28 00:00:00.000000000 Z
12
+ date: 2013-03-01 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: capifony