Sha256: c29dc32c2c82d83e0c99c72df3e7fecb98f0f2795398ae167ce7abdc848a7c04
Contents?: true
Size: 1.08 KB
Versions: 3
Compression:
Stored size: 1.08 KB
Contents
require 'mina/bundler' require 'mina/padrino/helpers' # ## Settings # Any and all of these settings can be overriden in your `deploy.rb`. # ### padrino_env # Sets the Padrino environment for `rake` and `padrino` commands. # # Note that changing this will NOT change the environment that your application # is run in. set_default :padrino_env, 'production' # ### bundle_prefix # Prefix for Bundler commands. Often to something like `RAILS_ENV=production # bundle exec`. # # queue! "#{bundle_prefix} annotate -r" set_default :bundle_prefix, lambda { %{RACK_ENV="#{padrino_env}" #{bundle_bin} exec} } # ### rake # The prefix for `rake` commands. Use like so: # # queue! "#{rake} db:migrate" set_default :rake, lambda { %{#{bundle_prefix} rake} } # ### padrino # The prefix for `padrino` commands. Use like so: # # queue! "#{padrino} console" set_default :padrino, lambda { %{#{bundle_prefix} padrino } } namespace :padrino do desc "Starts an interactive console." task :console => :environment do in_current_dir do queue echo_cmd %[#{padrino} console] end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
mina-padrino-0.2.0 | lib/mina/padrino/core.rb |
mina-padrino-0.1.1 | lib/mina/padrino/core.rb |
mina-padrino-0.1.0 | lib/mina/padrino/core.rb |