Giter VIP home page Giter VIP logo

capistrano-shared_file's People

Contributors

cbetta avatar ctaintor avatar teohm avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

capistrano-shared_file's Issues

Consistent paths

Love this gem! Thanks for releasing it.

One problem though; is that it assumes files are in #{shared_dir}/files. Its directory equivalent, shared_children, just works off of #{shared_dir}. This feels inconsistent to me.

Also, in my specific case I have the directory shared/files which I want to use as a shared child but I also have shared/parameters.yml which I want to share as a file. Because of this I have to configure my shared_file_dir something like so:

set :shared_file_dir, '../shared'

Could we have it default to just the shared directory for files?

Error in rake tasks

I am getting errors when running rake tasks in my rails app using this. Using Rails 3.2.8.

Here is the trace:

rake -T --trace
rake aborted!
private method `load' called for nil:NilClass
/Users/cbetta/.rvm/gems/ruby-1.9.3-p286@puppet/gems/capistrano-shared_file-0.1.1/lib/capistrano/shared_file.rb:5:in `<top (required)>'
/Users/cbetta/.rvm/gems/ruby-1.9.3-p286@global/gems/bundler-1.2.1/lib/bundler/runtime.rb:74:in `require'
/Users/cbetta/.rvm/gems/ruby-1.9.3-p286@global/gems/bundler-1.2.1/lib/bundler/runtime.rb:74:in `rescue in block in require'
/Users/cbetta/.rvm/gems/ruby-1.9.3-p286@global/gems/bundler-1.2.1/lib/bundler/runtime.rb:62:in `block in require'
/Users/cbetta/.rvm/gems/ruby-1.9.3-p286@global/gems/bundler-1.2.1/lib/bundler/runtime.rb:55:in `each'
/Users/cbetta/.rvm/gems/ruby-1.9.3-p286@global/gems/bundler-1.2.1/lib/bundler/runtime.rb:55:in `require'
/Users/cbetta/.rvm/gems/ruby-1.9.3-p286@global/gems/bundler-1.2.1/lib/bundler.rb:128:in `require'
/Users/cbetta/Development/puppet/banana/config/application.rb:7:in `<top (required)>'
/Users/cbetta/Development/puppet/banana/Rakefile:5:in `require'
/Users/cbetta/Development/puppet/banana/Rakefile:5:in `<top (required)>'
/Users/cbetta/.rvm/gems/ruby-1.9.3-p286@global/gems/rake-0.9.2.2/lib/rake/rake_module.rb:25:in `load'
/Users/cbetta/.rvm/gems/ruby-1.9.3-p286@global/gems/rake-0.9.2.2/lib/rake/rake_module.rb:25:in `load_rakefile'
/Users/cbetta/.rvm/gems/ruby-1.9.3-p286@global/gems/rake-0.9.2.2/lib/rake/application.rb:501:in `raw_load_rakefile'
/Users/cbetta/.rvm/gems/ruby-1.9.3-p286@global/gems/rake-0.9.2.2/lib/rake/application.rb:82:in `block in load_rakefile'
/Users/cbetta/.rvm/gems/ruby-1.9.3-p286@global/gems/rake-0.9.2.2/lib/rake/application.rb:133:in `standard_exception_handling'
/Users/cbetta/.rvm/gems/ruby-1.9.3-p286@global/gems/rake-0.9.2.2/lib/rake/application.rb:81:in `load_rakefile'
/Users/cbetta/.rvm/gems/ruby-1.9.3-p286@global/gems/rake-0.9.2.2/lib/rake/application.rb:65:in `block in run'
/Users/cbetta/.rvm/gems/ruby-1.9.3-p286@global/gems/rake-0.9.2.2/lib/rake/application.rb:133:in `standard_exception_handling'
/Users/cbetta/.rvm/gems/ruby-1.9.3-p286@global/gems/rake-0.9.2.2/lib/rake/application.rb:63:in `run'
/Users/cbetta/.rvm/gems/ruby-1.9.3-p286@global/gems/rake-0.9.2.2/bin/rake:33:in `<top (required)>'
/Users/cbetta/.rvm/gems/ruby-1.9.3-p286@global/bin/rake:19:in `load'
/Users/cbetta/.rvm/gems/ruby-1.9.3-p286@global/bin/rake:19:in `<main>'
/Users/cbetta/.rvm/gems/ruby-1.9.3-p286@puppet/bin/ruby_noexec_wrapper:14:in `eval'
/Users/cbetta/.rvm/gems/ruby-1.9.3-p286@puppet/bin/ruby_noexec_wrapper:14:in `<main>'

I had to do this to get rid of the error:

gem 'capistrano-shared_file', require: nil

Error require script

After gem install, i start cap deploy:setup but an error occured :

/usr/lib/ruby/vendor_ruby/capistrano/configuration/loading.rb:152:in `require': no such file to load -- capistrano/shared_file (LoadError)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.