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

#cliObject

Returns the value of attribute cli

Returns:

  • (Object)

    the current value of cli



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

def cli
  @cli
end

#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

#systemd?Boolean

Returns:

  • (Boolean)


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

def systemd?
  type == "systemd"
end

#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



16
17
18
# File 'lib/pkgr/distributions/runner.rb', line 16

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