crazycode-cap-recipes 0.4.3 → 0.4.4

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION.yml CHANGED
@@ -1,5 +1,5 @@
1
1
  ---
2
2
  :minor: 4
3
- :patch: 3
3
+ :patch: 4
4
4
  :build:
5
5
  :major: 0
@@ -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.4.3"
8
+ s.version = "0.4.4"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["crazycode"]
@@ -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 :copy_to_dir, :roles => :app do
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 "copy file, upload it, then execute commands"
81
- task :doall, :roles => :single do
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: 9
4
+ hash: 7
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 4
9
- - 3
10
- version: 0.4.3
9
+ - 4
10
+ version: 0.4.4
11
11
  platform: ruby
12
12
  authors:
13
13
  - crazycode