crossroads_capistrano 1.4.43 → 1.4.44

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.
@@ -0,0 +1,15 @@
1
+ ---
2
+ !binary "U0hBMQ==":
3
+ metadata.gz: !binary |-
4
+ MGVkOGEzNTIxMGYyNDljODBhOTE1NmVjODZhZjBmZWJmZjNlNmMxZg==
5
+ data.tar.gz: !binary |-
6
+ ODg5Y2JmNmYyMGQ2YTQ1NjExYmUzNjQ1YWVlNmUxNzUxNDA5MzllMA==
7
+ SHA512:
8
+ metadata.gz: !binary |-
9
+ NGU3ZjFmNzIzOTJjMzY0ZGJiYjEyMDBjMzNhNWZiNzYzMjBkNDNmM2JmZDQ4
10
+ NjljYTQ2MzQ1OWZkMjJjMmU2NDY5ZmU3NGU4NzU3ZDc4NGJjODAyZDY0ODBj
11
+ ODA2OTVhYzQxMzc4OGE0N2U5ZDQ4NGNlZjQ2M2U1YjNmN2I5MTU=
12
+ data.tar.gz: !binary |-
13
+ MTNlNWMzZWI5OGQwZTMyNWZlMGEyODYzM2IzZDZlMWY0YzI2ODUzYzk5NThl
14
+ NzhiMTM5ZmQ5OWQ0MGQ4ZTRmMDRhMzVjNzIwNzBlZTE4NTQyNzg2OGUyMmQ2
15
+ NDI2MzI4NWE4ODMwYWY0OTQwNDJjN2M4NzcxNjk3MTUwYTc5YWE=
data/Gemfile CHANGED
@@ -1,4 +1,4 @@
1
- source "http://rubygems.org"
1
+ source 'https://rubygems.org'
2
2
 
3
3
  # Specify your gem's dependencies in crossroads_capistrano.gemspec
4
4
  gemspec
@@ -3,7 +3,7 @@ $:.push File.expand_path("../lib", __FILE__)
3
3
 
4
4
  Gem::Specification.new do |s|
5
5
  s.name = "crossroads_capistrano"
6
- s.version = "1.4.43"
6
+ s.version = "1.4.44"
7
7
  s.platform = Gem::Platform::RUBY
8
8
  s.authors = ["Steve Kenworthy", "Ben Tillman", "Nathan Broadbent"]
9
9
  s.email = ["it_dept@crossroads.org.hk"]
@@ -0,0 +1,46 @@
1
+ # Faster deploy:notify_airbrake (without extra rake task)
2
+ # Sends information about the deploy via Airbrake.
3
+
4
+ require 'airbrake'
5
+
6
+ namespace :airbrake do
7
+ desc "Send deployment notification via Airbrake"
8
+ task :notify_deployment, :except => { :no_release => true } do
9
+ if ARGV.include?("-n")
10
+ puts "\n ** Dry run, not notifying.\n\n"
11
+ else
12
+ #~ require 'airbrake'
13
+ require File.join(rails_root,'config','initializers','airbrake')
14
+ require 'airbrake_tasks'
15
+
16
+ # Ignore AirbrakeTasks output. Don't want to see the XML request.
17
+ AirbrakeTasks.module_eval do; def self.puts(str); true; end; end
18
+
19
+ rails_env = fetch(:airbrake_env, fetch(:rails_env, "production"))
20
+ local_user = ENV['USER'] || ENV['USERNAME']
21
+
22
+ puts %Q{
23
+ * \033[0;32m== Sending deployment notification via Airbrake\033[0m
24
+ - \033[0;33mUser:\033[0m #{local_user}
25
+ - \033[0;33mRails Environment:\033[0m #{rails_env}
26
+ - \033[0;33mRevision:\033[1;37m #{current_revision[0,7]}\033[0m
27
+ - \033[0;33mRepository:\033[0m #{repository}\n\n}
28
+
29
+ AirbrakeTasks.deploy(:rails_env => rails_env,
30
+ :scm_revision => current_revision,
31
+ :scm_repository => repository,
32
+ :local_username => local_user)
33
+
34
+ puts " ===== Notified.\n\n"
35
+ end
36
+ end
37
+ end
38
+
39
+ namespace :airbrake do
40
+ desc "Test Airbrake notifications"
41
+ task :test_error do
42
+ run "cd #{current_path}; RAILS_ENV=#{rails_env} bundle exec rake airbrake:test"
43
+ end
44
+ end
45
+
46
+ after NotificationTasks, "airbrake:notify_deployment"
@@ -1,16 +1,6 @@
1
1
  require 'rvm/capistrano'
2
2
 
3
- namespace :rvm do
4
-
5
- desc "Trust the application rvmrc file that is deployed"
6
- task :trust_me do
7
- run "rvm rvmrc trust #{current_path}"
8
- run "if [ -d #{release_path} ]; then rvm rvmrc trust #{release_path}; fi"
9
- end
10
-
11
- end
12
-
13
- before "deploy:restart", "rvm:trust_me"
14
3
  before 'deploy:setup', 'rvm:install_rvm' # install RVM
15
- set :rvm_install_pkgs, %w(curl git gcc-c++ patch readline readline-devel zlib zlib-devel libyaml-devel libffi-devel openssl-devel make bzip2) # This must come before the 'rvm:install_ruby' task is called.
4
+ # This must come before the 'rvm:install_ruby' task is called.
5
+ set :rvm_install_pkgs, %w(curl git gcc-c++ patch readline readline-devel zlib zlib-devel libyaml-devel libffi-devel openssl-devel make bzip2)
16
6
  before 'deploy:setup', 'rvm:install_ruby' # install Ruby and create gemset, or:
@@ -66,9 +66,7 @@ end
66
66
  namespace :gemrc do
67
67
  desc "Setup ~/.gemrc file to avoid rdoc and ri generation"
68
68
  task :setup do
69
- puts "\n ** == Configuring ~/.gemrc ...\n\n"
70
- home_dir = capture("#{sudo} echo ~").strip
71
- put "gem: --no-ri --no-rdoc", "#{home_dir}/.gemrc"
69
+ run 'echo "gem: --no-ri --no-rdoc" > ~/.gemrc'
72
70
  end
73
71
  end
74
72
 
metadata CHANGED
@@ -1,105 +1,87 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: crossroads_capistrano
3
- version: !ruby/object:Gem::Version
4
- hash: 81
5
- prerelease:
6
- segments:
7
- - 1
8
- - 4
9
- - 43
10
- version: 1.4.43
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.4.44
11
5
  platform: ruby
12
- authors:
6
+ authors:
13
7
  - Steve Kenworthy
14
8
  - Ben Tillman
15
9
  - Nathan Broadbent
16
10
  autorequire:
17
11
  bindir: bin
18
12
  cert_chain: []
19
-
20
- date: 2013-01-04 00:00:00 +08:00
21
- default_executable:
22
- dependencies:
23
- - !ruby/object:Gem::Dependency
13
+ date: 2014-01-15 00:00:00.000000000 Z
14
+ dependencies:
15
+ - !ruby/object:Gem::Dependency
24
16
  name: capistrano
25
- prerelease: false
26
- version_requirements: &id001 !ruby/object:Gem::Requirement
27
- none: false
28
- requirements:
29
- - - ">="
30
- - !ruby/object:Gem::Version
31
- hash: 23
32
- segments:
33
- - 2
34
- - 6
35
- - 0
17
+ requirement: !ruby/object:Gem::Requirement
18
+ requirements:
19
+ - - ! '>='
20
+ - !ruby/object:Gem::Version
36
21
  version: 2.6.0
37
- requirement: *id001
38
22
  type: :runtime
39
- - !ruby/object:Gem::Dependency
40
- name: capistrano-ext
41
23
  prerelease: false
42
- version_requirements: &id002 !ruby/object:Gem::Requirement
43
- none: false
44
- requirements:
45
- - - ">="
46
- - !ruby/object:Gem::Version
47
- hash: 29
48
- segments:
49
- - 1
50
- - 2
51
- - 1
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ requirements:
26
+ - - ! '>='
27
+ - !ruby/object:Gem::Version
28
+ version: 2.6.0
29
+ - !ruby/object:Gem::Dependency
30
+ name: capistrano-ext
31
+ requirement: !ruby/object:Gem::Requirement
32
+ requirements:
33
+ - - ! '>='
34
+ - !ruby/object:Gem::Version
52
35
  version: 1.2.1
53
- requirement: *id002
54
36
  type: :runtime
55
- - !ruby/object:Gem::Dependency
56
- name: capistrano_colors
57
37
  prerelease: false
58
- version_requirements: &id003 !ruby/object:Gem::Requirement
59
- none: false
60
- requirements:
61
- - - ">="
62
- - !ruby/object:Gem::Version
63
- hash: 3
64
- segments:
65
- - 0
66
- - 5
67
- - 4
38
+ version_requirements: !ruby/object:Gem::Requirement
39
+ requirements:
40
+ - - ! '>='
41
+ - !ruby/object:Gem::Version
42
+ version: 1.2.1
43
+ - !ruby/object:Gem::Dependency
44
+ name: capistrano_colors
45
+ requirement: !ruby/object:Gem::Requirement
46
+ requirements:
47
+ - - ! '>='
48
+ - !ruby/object:Gem::Version
68
49
  version: 0.5.4
69
- requirement: *id003
70
50
  type: :runtime
71
- - !ruby/object:Gem::Dependency
72
- name: rvm-capistrano
73
51
  prerelease: false
74
- version_requirements: &id004 !ruby/object:Gem::Requirement
75
- none: false
76
- requirements:
77
- - - ">="
78
- - !ruby/object:Gem::Version
79
- hash: 17
80
- segments:
81
- - 1
82
- - 2
83
- - 7
52
+ version_requirements: !ruby/object:Gem::Requirement
53
+ requirements:
54
+ - - ! '>='
55
+ - !ruby/object:Gem::Version
56
+ version: 0.5.4
57
+ - !ruby/object:Gem::Dependency
58
+ name: rvm-capistrano
59
+ requirement: !ruby/object:Gem::Requirement
60
+ requirements:
61
+ - - ! '>='
62
+ - !ruby/object:Gem::Version
84
63
  version: 1.2.7
85
- requirement: *id004
86
64
  type: :runtime
65
+ prerelease: false
66
+ version_requirements: !ruby/object:Gem::Requirement
67
+ requirements:
68
+ - - ! '>='
69
+ - !ruby/object:Gem::Version
70
+ version: 1.2.7
87
71
  description: A Crossroads Foundation collection of generic capistrano recipes.
88
- email:
72
+ email:
89
73
  - it_dept@crossroads.org.hk
90
74
  executables: []
91
-
92
75
  extensions: []
93
-
94
76
  extra_rdoc_files: []
95
-
96
- files:
77
+ files:
97
78
  - .gitignore
98
79
  - Gemfile
99
80
  - README.textile
100
81
  - Rakefile
101
82
  - crossroads_capistrano.gemspec
102
83
  - lib/crossroads_capistrano.rb
84
+ - lib/crossroads_capistrano/recipes/airbrake.rb
103
85
  - lib/crossroads_capistrano/recipes/base.rb
104
86
  - lib/crossroads_capistrano/recipes/cache.rb
105
87
  - lib/crossroads_capistrano/recipes/config.rb
@@ -122,39 +104,27 @@ files:
122
104
  - lib/crossroads_capistrano/recipes/user_permissions.rb
123
105
  - lib/crossroads_capistrano/recipes/whenever.rb
124
106
  - lib/crossroads_capistrano/recipes/yum.rb
125
- has_rdoc: true
126
107
  homepage: http://www.crossroads.org.hk
127
108
  licenses: []
128
-
109
+ metadata: {}
129
110
  post_install_message:
130
111
  rdoc_options: []
131
-
132
- require_paths:
112
+ require_paths:
133
113
  - lib
134
- required_ruby_version: !ruby/object:Gem::Requirement
135
- none: false
136
- requirements:
137
- - - ">="
138
- - !ruby/object:Gem::Version
139
- hash: 3
140
- segments:
141
- - 0
142
- version: "0"
143
- required_rubygems_version: !ruby/object:Gem::Requirement
144
- none: false
145
- requirements:
146
- - - ">="
147
- - !ruby/object:Gem::Version
148
- hash: 3
149
- segments:
150
- - 0
151
- version: "0"
114
+ required_ruby_version: !ruby/object:Gem::Requirement
115
+ requirements:
116
+ - - ! '>='
117
+ - !ruby/object:Gem::Version
118
+ version: '0'
119
+ required_rubygems_version: !ruby/object:Gem::Requirement
120
+ requirements:
121
+ - - ! '>='
122
+ - !ruby/object:Gem::Version
123
+ version: '0'
152
124
  requirements: []
153
-
154
125
  rubyforge_project: crossroads_capistrano
155
- rubygems_version: 1.4.2
126
+ rubygems_version: 2.2.1
156
127
  signing_key:
157
- specification_version: 3
128
+ specification_version: 4
158
129
  summary: Crossroads capistrano recipes
159
130
  test_files: []
160
-