necktie 1.0.5 → 1.0.6
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/CHANGELOG +3 -0
- data/lib/necktie/capistrano.rb +3 -4
- data/necktie.gemspec +1 -1
- metadata +3 -3
data/CHANGELOG
CHANGED
data/lib/necktie/capistrano.rb
CHANGED
@@ -7,7 +7,7 @@ Capistrano::Configuration.instance.load do
|
|
7
7
|
gem_spec = Gem::SourceIndex.from_installed_gems.find_name(spec.name, spec.version).last
|
8
8
|
gem_file = File.join(Gem.dir, "cache", gem_spec.file_name)
|
9
9
|
upload gem_file, File.basename(gem_file), :via=>:scp
|
10
|
-
sudo "gem install #{File.basename(gem_file)}"
|
10
|
+
sudo "gem install --no-rdoc --no-ri #{File.basename(gem_file)}"
|
11
11
|
end
|
12
12
|
|
13
13
|
desc "[internal] Pull updates from Git"
|
@@ -18,8 +18,10 @@ Capistrano::Configuration.instance.load do
|
|
18
18
|
|
19
19
|
desc "[internal] Run necktie upgrade"
|
20
20
|
task :upgrade do # run necktime
|
21
|
+
deply.web.disable rescue nil
|
21
22
|
tasks = ENV["ROLES"].to_s.split(",") # ROLES => task names
|
22
23
|
sudo "necktie --environment #{fetch(:rails_env, "production")} #{tasks.join(" ")}"
|
24
|
+
deply.web.enable rescue nil
|
23
25
|
end
|
24
26
|
|
25
27
|
desc "Run necktie on all servers (you can use HOSTS or RAILS env vars)"
|
@@ -29,8 +31,5 @@ Capistrano::Configuration.instance.load do
|
|
29
31
|
pull
|
30
32
|
upgrade
|
31
33
|
end
|
32
|
-
|
33
|
-
before "necktie:upgrade", "deploy:web:disable"
|
34
|
-
after "necktie:upgrade", "deploy:web:enable"
|
35
34
|
end
|
36
35
|
end
|
data/necktie.gemspec
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: necktie
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Assaf Arkin
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-
|
12
|
+
date: 2009-12-08 00:00:00 -08:00
|
13
13
|
default_executable:
|
14
14
|
dependencies: []
|
15
15
|
|
@@ -256,7 +256,7 @@ licenses: []
|
|
256
256
|
post_install_message:
|
257
257
|
rdoc_options:
|
258
258
|
- --title
|
259
|
-
- Necktie 1.0.
|
259
|
+
- Necktie 1.0.6
|
260
260
|
- --main
|
261
261
|
- README.rdoc
|
262
262
|
- --webcvs
|