crazycode-cap-recipes 0.3.38 → 0.3.39

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION.yml CHANGED
@@ -2,4 +2,4 @@
2
2
  :major: 0
3
3
  :minor: 3
4
4
  :build:
5
- :patch: 38
5
+ :patch: 39
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{crazycode-cap-recipes}
8
- s.version = "0.3.38"
8
+ s.version = "0.3.39"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["crazycode"]
@@ -41,15 +41,19 @@ Capistrano::Configuration.instance(true).load do |configuration|
41
41
  gitdeploy.setup_local
42
42
  end
43
43
 
44
+ desc "setup remote gitdeploy dir"
44
45
  task :setup_remote do
45
46
  run clone_repository_command()
46
47
  end
47
48
 
49
+ desc "setup locate gitdeploy dir"
48
50
  task :setup_local do
49
51
  system clone_repository_local_command()
50
52
  end
51
53
 
54
+ desc "tag build version. use -s tag=xxx to set tag's name"
52
55
  task :tag do
56
+ gitdeploy.setup_local
53
57
  tag_name = configuration[:tag]
54
58
  if tag_name.nil?
55
59
  rails "NO tag. pls use -s tag=xxx set tag_name"
@@ -82,6 +86,7 @@ Capistrano::Configuration.instance(true).load do |configuration|
82
86
  end
83
87
  end
84
88
 
89
+ desc "deploy tagged version. use -s tag=xxx to set tag's name"
85
90
  task :deploy do
86
91
  tag_name = configuration[:tag]
87
92
  if tag_name.nil?
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 3
8
- - 38
9
- version: 0.3.38
8
+ - 39
9
+ version: 0.3.39
10
10
  platform: ruby
11
11
  authors:
12
12
  - crazycode