Module: Dokuen::Platform

Defined in:
lib/dokuen/platform.rb

Class Method Summary collapse

Class Method Details

.boot_script(platform) ⇒ Object



4
5
6
7
8
9
10
11
12
13
# File 'lib/dokuen/platform.rb', line 4

def self.boot_script(platform)
  case platform
  when 'mac'
    return "/Library/LaunchDaemons/dokuen.plist", "mac_launchdaemon"
  when 'ubuntu'
    return "/etc/init/dokuen", "ubuntu_upstart"
  else
    raise "Unknow platform: #{platform}"
  end
end