crazycode-cap-recipes 0.4.3 → 0.4.4
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.
- data/VERSION.yml +1 -1
- data/crazycode-cap-recipes.gemspec +1 -1
- data/lib/cap_recipes/tasks/sdpjenkins.rb +3 -4
- metadata +3 -3
data/VERSION.yml
CHANGED
@@ -25,7 +25,7 @@ Capistrano::Configuration.instance(true).load do |configuration|
|
|
25
25
|
namespace :sdpjenkins do
|
26
26
|
|
27
27
|
desc "copy all war to specify dir"
|
28
|
-
task :
|
28
|
+
task :copy_release_file, :roles => :app do
|
29
29
|
if build_workspace.empty?
|
30
30
|
puts "Please specify the build_workspace dir, set :build_workspace, '/home/foo/project/code'"
|
31
31
|
exit(1)
|
@@ -77,14 +77,13 @@ Capistrano::Configuration.instance(true).load do |configuration|
|
|
77
77
|
end
|
78
78
|
end
|
79
79
|
|
80
|
-
desc "
|
81
|
-
task :
|
80
|
+
desc "upload release file, then execute commands"
|
81
|
+
task :deploy, :roles => :single do
|
82
82
|
codes = deploy_unit_code.split(/[,;\s]+/)
|
83
83
|
deploy_hash = Hash.new
|
84
84
|
codes.each {|code| deploy_hash[code] = CmdbService.start_deploy(cse_base, code, deploy_stage, tag) }
|
85
85
|
|
86
86
|
begin
|
87
|
-
copy_to_dir
|
88
87
|
upload_file
|
89
88
|
execute_commands
|
90
89
|
deploy_hash.each {|code, deployid| CmdbService.complete_deploy(cse_base, code, deployid, true, "通过capistrano部署成功") }
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: crazycode-cap-recipes
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 7
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 4
|
9
|
-
-
|
10
|
-
version: 0.4.
|
9
|
+
- 4
|
10
|
+
version: 0.4.4
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- crazycode
|