capistrano_webfaction_recipes 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -105,6 +105,15 @@ Capistrano::Configuration.instance(:must_exist).load do
105
105
 
106
106
  end
107
107
 
108
+ namespace :rake do
109
+
110
+ desc "Run a task on a remote server. Use it with cap rake:invoke task=task_name"
111
+ task :invoke do
112
+ run "cd #{fetch(:current_path)}; bundle exec rake #{ENV['task']} RAILS_ENV=#{fetch(:rails_env)} RAILS_RAKE_TASK=1"
113
+ end
114
+
115
+ end
116
+
108
117
  desc "Display local gemfile path"
109
118
  task :show_gemfile_path do
110
119
  puts "Local: #{fetch(:local_gemfile_path)}".bold
@@ -1,3 +1,3 @@
1
1
  module CapistranoWebfactionRecipes
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
@@ -10,6 +10,7 @@ set :app_short, '<%= @remote_rails_app_root_dir_name %>'
10
10
  set :external_assets_path, []
11
11
  set :local_gemfile_path, File.expand_path('../../Gemfile', __FILE__)
12
12
  set :bitbucket, '<%= @bitbucket_user %>'
13
+ # FIXME: you MUST create (manually) a directory in capistrano shared folder
13
14
  set :uploaded_assets_paths, []
14
15
 
15
16
  # Calculated options
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano_webfaction_recipes
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-06-09 00:00:00.000000000 Z
12
+ date: 2013-07-01 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler
@@ -131,9 +131,12 @@ required_rubygems_version: !ruby/object:Gem::Requirement
131
131
  - - ! '>='
132
132
  - !ruby/object:Gem::Version
133
133
  version: '0'
134
+ segments:
135
+ - 0
136
+ hash: 145689622906825961
134
137
  requirements: []
135
138
  rubyforge_project:
136
- rubygems_version: 1.8.23
139
+ rubygems_version: 1.8.25
137
140
  signing_key:
138
141
  specification_version: 3
139
142
  summary: A collection of recipes to handle webfaction shared hosting