Class: Buckshot
- Inherits:
-
Object
- Object
- Buckshot
- Defined in:
- lib/buckshot.rb
Constant Summary collapse
- VERSION =
"0.2.0"
Class Method Summary collapse
Class Method Details
.start ⇒ Object
5 6 7 8 9 10 |
# File 'lib/buckshot.rb', line 5 def self.start case environment when "development" then start_shotgun else start_thin end end |
.start_shotgun ⇒ Object
12 13 14 |
# File 'lib/buckshot.rb', line 12 def self.start_shotgun exec "shotgun -s thin -p #{port} -E #{environment}" end |
.start_thin ⇒ Object
16 17 18 |
# File 'lib/buckshot.rb', line 16 def self.start_thin exec "thin start -p #{port} -e #{environment}" end |