kelredd-useful 0.1.4 → 0.1.6
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/useful/cap_tasks/rails/gems.rb +14 -0
- data/lib/useful/cap_tasks/rails.rb +3 -0
- data/lib/useful/cap_tasks.rb +3 -0
- data/lib/useful/version.rb +1 -1
- metadata +6 -1
@@ -0,0 +1,14 @@
|
|
1
|
+
Capistrano::Configuration.instance.load do
|
2
|
+
namespace :gems do
|
3
|
+
|
4
|
+
desc "Update code, run rails 'rake gems:install'"
|
5
|
+
task :install, :roles => :app do
|
6
|
+
rake = fetch(:rake, "rake")
|
7
|
+
rails_env = fetch(:rails_env, "production")
|
8
|
+
|
9
|
+
deploy.update_code
|
10
|
+
run "cd #{current_release}; #{rake} RAILS_ENV=#{rails_env} gems:install", :pty => false
|
11
|
+
end
|
12
|
+
|
13
|
+
end
|
14
|
+
end
|
data/lib/useful/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: kelredd-useful
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kelredd
|
@@ -28,6 +28,11 @@ files:
|
|
28
28
|
- lib/useful/active_record_helpers
|
29
29
|
- lib/useful/active_record_helpers/mysql_migration_helpers.rb
|
30
30
|
- lib/useful/active_record_helpers.rb
|
31
|
+
- lib/useful/cap_tasks
|
32
|
+
- lib/useful/cap_tasks/rails
|
33
|
+
- lib/useful/cap_tasks/rails/gems.rb
|
34
|
+
- lib/useful/cap_tasks/rails.rb
|
35
|
+
- lib/useful/cap_tasks.rb
|
31
36
|
- lib/useful/rails_extensions
|
32
37
|
- lib/useful/rails_extensions/environment_tests.rb
|
33
38
|
- lib/useful/rails_extensions.rb
|