magicmonkey 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/Rakefile +3 -3
  2. data/VERSION +1 -1
  3. data/lib/magic_monkey.rb +9 -5
  4. metadata +3 -3
data/Rakefile CHANGED
@@ -5,14 +5,14 @@ begin
5
5
  require 'jeweler'
6
6
  Jeweler::Tasks.new do |gem|
7
7
  gem.name = "magicmonkey"
8
- gem.version = File.exist?('VERSION') ? File.read('VERSION').strip : ''
8
+ gem.version = File.exist?('VERSION') ? File.read('VERSION').strip : ''
9
9
  gem.summary = %Q{Manage your Rails applications: different Ruby versions and different application servers}
10
- gem.description = %Q{Manage your Rails applications: different Ruby versions and different application servers}
10
+ gem.description = %Q{Manage your Rails applications: different Ruby versions and different application servers.}
11
11
  gem.email = "enrico@megiston.it"
12
12
  gem.homepage = "http://github.com/pioz/magicmonkey"
13
13
  gem.authors = ["pioz"]
14
14
  gem.add_development_dependency "thoughtbot-shoulda", ">= 0"
15
- #gem.add_dependency 'nokogiri'
15
+ #gem.add_dependency 'nokogiri'
16
16
  #gem.add_dependency 'activerecord'
17
17
  #gem.add_dependency 'sqlite3-ruby'
18
18
  end
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.1
1
+ 0.1.2
data/lib/magic_monkey.rb CHANGED
@@ -65,14 +65,16 @@ module MagicMonkey
65
65
  applications.each do |app_name|
66
66
  if Conf[app_name]
67
67
  commands = []
68
- commands << "source '#{Etc.getpwuid.dir}/.rvm/scripts/rvm'" if Conf[app_name][:ruby] != 'auto'
68
+ if Conf[app_name][:ruby] != 'auto'
69
+ commands << "source '#{Etc.getpwuid.dir}/.rvm/scripts/rvm'"
70
+ commands << "rvm #{v ? 'use ' : ''}'#{Conf[app_name][:ruby]}'"
71
+ end
69
72
  commands << "cd '#{Conf[app_name][:app_path]}'"
70
- commands << "rvm #{v ? 'use ' : ''}'#{Conf[app_name][:ruby]}'" if Conf[app_name][:ruby] != 'auto'
71
73
  case Conf[app_name][:app_server]
72
74
  when 'passenger'
73
75
  commands << "passenger start -e production -p #{Conf[app_name][:port]} #{Conf[app_name][:app_server_options]} -d"
74
76
  when 'thin'
75
- commands << "thin start -e production -p #{Conf[app_name][:port]} -d"
77
+ commands << "thin start -e production -p #{Conf[app_name][:port]} #{Conf[app_name][:app_server_options]} -d"
76
78
  end
77
79
  print "Starting '#{app_name}' application..."
78
80
  STDOUT.flush
@@ -94,9 +96,11 @@ module MagicMonkey
94
96
  applications.each do |app_name|
95
97
  if Conf[app_name]
96
98
  commands = []
97
- commands << "source '#{Etc.getpwuid.dir}/.rvm/scripts/rvm'" if Conf[app_name][:ruby] != 'auto'
99
+ if Conf[app_name][:ruby] != 'auto'
100
+ commands << "source '#{Etc.getpwuid.dir}/.rvm/scripts/rvm'"
101
+ commands << "rvm #{v ? 'use ' : ''}'#{Conf[app_name][:ruby]}'"
102
+ end
98
103
  commands << "cd '#{Conf[app_name][:app_path]}'"
99
- commands << "rvm #{v ? 'use ' : ''}'#{Conf[app_name][:ruby]}'" if Conf[app_name][:ruby] != 'auto'
100
104
  case Conf[app_name][:app_server]
101
105
  when 'passenger'
102
106
  commands << "passenger stop -p #{Conf[app_name][:port]}"
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: magicmonkey
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.1.1
5
+ version: 0.1.2
6
6
  platform: ruby
7
7
  authors:
8
8
  - pioz
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2011-06-23 00:00:00 +02:00
13
+ date: 2011-06-24 00:00:00 +02:00
14
14
  default_executable: magicmonkey
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
@@ -24,7 +24,7 @@ dependencies:
24
24
  version: "0"
25
25
  type: :development
26
26
  version_requirements: *id001
27
- description: "Manage your Rails applications: different Ruby versions and different application servers"
27
+ description: "Manage your Rails applications: different Ruby versions and different application servers."
28
28
  email: enrico@megiston.it
29
29
  executables:
30
30
  - magicmonkey