Class: Pkgr::Distributions::Runner
- Inherits:
-
Struct
- Object
- Struct
- Pkgr::Distributions::Runner
- Defined in:
- lib/pkgr/distributions/runner.rb
Instance Attribute Summary collapse
-
#cli ⇒ Object
Returns the value of attribute cli.
-
#type ⇒ Object
Returns the value of attribute type.
-
#version ⇒ Object
Returns the value of attribute version.
Instance Method Summary collapse
Instance Attribute Details
#cli ⇒ Object
Returns the value of attribute cli
3 4 5 |
# File 'lib/pkgr/distributions/runner.rb', line 3 def cli @cli end |
#type ⇒ Object
Returns the value of attribute type
3 4 5 |
# File 'lib/pkgr/distributions/runner.rb', line 3 def type @type end |
#version ⇒ Object
Returns the value of attribute version
3 4 5 |
# File 'lib/pkgr/distributions/runner.rb', line 3 def version @version end |
Instance Method Details
#systemd? ⇒ Boolean
12 13 14 |
# File 'lib/pkgr/distributions/runner.rb', line 12 def systemd? type == "systemd" end |
#sysv? ⇒ 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
8 9 10 |
# File 'lib/pkgr/distributions/runner.rb', line 8 def upstart? type == "upstart" end |