Class: ForemanDebian::Initd::Script
- Inherits:
-
Template::Storage
- Object
- OpenStruct
- Template::Storage
- ForemanDebian::Initd::Script
- Defined in:
- lib/foreman_debian/initd/script.rb
Instance Attribute Summary collapse
-
#arguments ⇒ Object
readonly
Returns the value of attribute arguments.
-
#description ⇒ Object
readonly
Returns the value of attribute description.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#path ⇒ Object
readonly
Returns the value of attribute path.
-
#pidfile ⇒ Object
readonly
Returns the value of attribute pidfile.
-
#script ⇒ Object
readonly
Returns the value of attribute script.
-
#user ⇒ Object
readonly
Returns the value of attribute user.
Instance Method Summary collapse
-
#initialize(path, name, description, user, script, arguments, pidfile) ⇒ Script
constructor
A new instance of Script.
- #render ⇒ Object
Constructor Details
#initialize(path, name, description, user, script, arguments, pidfile) ⇒ Script
Returns a new instance of Script.
7 8 9 10 11 12 13 14 15 |
# File 'lib/foreman_debian/initd/script.rb', line 7 def initialize(path, name, description, user, script, arguments, pidfile) @path = path @name = name @description = description @user = user @script = script @arguments = arguments @pidfile = pidfile end |
Instance Attribute Details
#arguments ⇒ Object (readonly)
Returns the value of attribute arguments.
5 6 7 |
# File 'lib/foreman_debian/initd/script.rb', line 5 def arguments @arguments end |
#description ⇒ Object (readonly)
Returns the value of attribute description.
5 6 7 |
# File 'lib/foreman_debian/initd/script.rb', line 5 def description @description end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
5 6 7 |
# File 'lib/foreman_debian/initd/script.rb', line 5 def name @name end |
#path ⇒ Object (readonly)
Returns the value of attribute path.
5 6 7 |
# File 'lib/foreman_debian/initd/script.rb', line 5 def path @path end |
#pidfile ⇒ Object (readonly)
Returns the value of attribute pidfile.
5 6 7 |
# File 'lib/foreman_debian/initd/script.rb', line 5 def pidfile @pidfile end |
#script ⇒ Object (readonly)
Returns the value of attribute script.
5 6 7 |
# File 'lib/foreman_debian/initd/script.rb', line 5 def script @script end |
#user ⇒ Object (readonly)
Returns the value of attribute user.
5 6 7 |
# File 'lib/foreman_debian/initd/script.rb', line 5 def user @user end |
Instance Method Details
#render ⇒ Object
17 18 19 |
# File 'lib/foreman_debian/initd/script.rb', line 17 def render super('initd_script') end |