Class: Pkgr::Distributions::Runner

Inherits:
Struct
  • Object
show all
Defined in:
lib/pkgr/distributions/runner.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#typeObject

Returns the value of attribute type

Returns:

  • (Object)

    the current value of type



3
4
5
# File 'lib/pkgr/distributions/runner.rb', line 3

def type
  @type
end

#versionObject

Returns the value of attribute version

Returns:

  • (Object)

    the current value of version



3
4
5
# File 'lib/pkgr/distributions/runner.rb', line 3

def version
  @version
end

Instance Method Details

#sysv?Boolean

Returns:

  • (Boolean)


4
5
6
# File 'lib/pkgr/distributions/runner.rb', line 4

def sysv?
  type == "sysv"
end

#templates(process, app_name) ⇒ Object



12
13
14
# File 'lib/pkgr/distributions/runner.rb', line 12

def templates(process, app_name)
  send("templates_#{type}", process, app_name)
end

#upstart?Boolean

Returns:

  • (Boolean)


8
9
10
# File 'lib/pkgr/distributions/runner.rb', line 8

def upstart?
  type == "upstart"
end