magic_recipes 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -50,11 +50,10 @@ module MagicRecipes
50
50
  end
51
51
  if use_rvm
52
52
  run <<-CMD
53
- source '#{rvm_path}/scripts/rvm' &&
54
- rvm use #{rvm_ruby}-#{rvm_patch}@#{rvm_gemset} &&
55
- cd #{latest_release} &&
56
- #{rake} RAILS_ENV=#{rails_env} #{asset_env} assets:precompile
57
- CMD
53
+ #{rvm_cmd} &&
54
+ cd #{latest_release} &&
55
+ #{rake} RAILS_ENV=#{rails_env} #{asset_env} assets:precompile
56
+ CMD
58
57
  else
59
58
  run "cd #{latest_release} && #{rake} RAILS_ENV=#{rails_env} #{asset_env} assets:precompile"
60
59
  end
@@ -10,8 +10,7 @@ module MagicRecipes
10
10
  task :seed do
11
11
  if use_rvm
12
12
  run <<-CMD
13
- source '#{rvm_path}/scripts/rvm' &&
14
- rvm use #{rvm_ruby}-#{rvm_patch}@#{rvm_gemset} &&
13
+ #{rvm_cmd} &&
15
14
  cd #{latest_release} &&
16
15
  #{rake} db:seed RAILS_ENV=#{rails_env}
17
16
  CMD
@@ -24,8 +23,7 @@ module MagicRecipes
24
23
  task :migrate do
25
24
  if use_rvm
26
25
  run <<-CMD
27
- source '#{rvm_path}/scripts/rvm' &&
28
- rvm use #{rvm_ruby}-#{rvm_patch}@#{rvm_gemset} &&
26
+ #{rvm_cmd} &&
29
27
  cd #{latest_release} &&
30
28
  #{rake} db:migrate RAILS_ENV=#{rails_env}
31
29
  CMD
@@ -38,8 +38,7 @@ module MagicRecipes
38
38
  task :start, roles: :app do
39
39
  if use_rvm
40
40
  run <<-CMD
41
- source '#{rvm_path}/scripts/rvm' &&
42
- rvm use #{rvm_ruby}-#{rvm_patch}@#{rvm_gemset} &&
41
+ #{rvm_cmd} &&
43
42
  cd #{current_path} &&
44
43
  RAILS_ENV=production bundle exec rackup private_pub.ru -s thin -E production -p #{private_pub_port} -o #{server_ip} -D
45
44
  CMD
@@ -20,7 +20,9 @@ module MagicRecipes
20
20
  set :rvm_lib_path, "#{rvm_path}/lib"
21
21
  set :remote_bin_path, "#{rvm_path}/gems/ruby-#{rvm_ruby}-#{rvm_patch}/bin/"
22
22
  set :use_rvm, true
23
-
23
+
24
+ set :rvm_cmd, "source '#{rvm_path}/scripts/rvm' && rvm use #{rvm_ruby}-#{rvm_patch}@#{rvm_gemset}"
25
+
24
26
  # => set :default_environment, {
25
27
  # => 'PATH' => "#{rvm_path}/gems/ruby/1.9.1/bin:#{rvm_bin_path}/bin:#{remote_bin_path}:$PATH",
26
28
  # => 'RUBY_VERSION' => "#{rvm_ruby}",
@@ -22,8 +22,7 @@ module MagicRecipes
22
22
  reconf
23
23
  if use_rvm
24
24
  run <<-CMD
25
- source '#{rvm_path}/scripts/rvm' &&
26
- rvm use #{rvm_ruby}-#{rvm_patch}@#{rvm_gemset} &&
25
+ #{rvm_cmd} &&
27
26
  cd #{current_path} &&
28
27
  bundle exec thin #{command} -C config/thin_app.yml
29
28
  CMD
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: magic_recipes
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
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: 2012-07-30 00:00:00.000000000 Z
12
+ date: 2012-07-31 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails