Class: Buckshot

Inherits:
Object
  • Object
show all
Defined in:
lib/buckshot.rb

Constant Summary collapse

VERSION =
"0.2.0"

Class Method Summary collapse

Class Method Details

.startObject



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_shotgunObject



12
13
14
# File 'lib/buckshot.rb', line 12

def self.start_shotgun
  exec "shotgun -s thin -p #{port} -E #{environment}"
end

.start_thinObject



16
17
18
# File 'lib/buckshot.rb', line 16

def self.start_thin
  exec "thin start -p #{port} -e #{environment}"
end