kstrano 0.0.39 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/kstrano.rb +8 -1
  2. metadata +2 -2
data/lib/kstrano.rb CHANGED
@@ -53,7 +53,6 @@ namespace :kuma do
53
53
 
54
54
  desc "Show log of what changed compared to the deployed version"
55
55
  task :changelog do
56
- Kumastrano.say "nb releases #{releases.length}"
57
56
  if releases.length > 0
58
57
  Kumastrano::GitHelper.fetch
59
58
  changelog = `git log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --no-merges #{current_revision}..#{real_revision}`
@@ -234,6 +233,14 @@ after "deploy:finalize_update" do
234
233
  kuma.apc.clear
235
234
  end
236
235
 
236
+ # Ensure a stage is specificaly selected
237
+ on :start do
238
+ if !stages.include?(ARGV.first)
239
+ Capistrano::CLI.ui.say("You need to select one of the stages first (cap <#{stages.join('|')}> #{ARGV.first})")
240
+ exit
241
+ end
242
+ end
243
+
237
244
  before :deploy do
238
245
  Kumastrano.say "executing ssh-add"
239
246
  %x(ssh-add)
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: 0.0.39
4
+ version: 1.0.0
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-19 00:00:00.000000000 Z
12
+ date: 2013-02-20 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: capifony