Class: ForemanDebian::Initd::Script

Inherits:
Template::Storage show all
Defined in:
lib/foreman_debian/initd/script.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#argumentsObject (readonly)

Returns the value of attribute arguments.



5
6
7
# File 'lib/foreman_debian/initd/script.rb', line 5

def arguments
  @arguments
end

#descriptionObject (readonly)

Returns the value of attribute description.



5
6
7
# File 'lib/foreman_debian/initd/script.rb', line 5

def description
  @description
end

#nameObject (readonly)

Returns the value of attribute name.



5
6
7
# File 'lib/foreman_debian/initd/script.rb', line 5

def name
  @name
end

#pathObject (readonly)

Returns the value of attribute path.



5
6
7
# File 'lib/foreman_debian/initd/script.rb', line 5

def path
  @path
end

#pidfileObject (readonly)

Returns the value of attribute pidfile.



5
6
7
# File 'lib/foreman_debian/initd/script.rb', line 5

def pidfile
  @pidfile
end

#scriptObject (readonly)

Returns the value of attribute script.



5
6
7
# File 'lib/foreman_debian/initd/script.rb', line 5

def script
  @script
end

#userObject (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

#renderObject



17
18
19
# File 'lib/foreman_debian/initd/script.rb', line 17

def render
  super('initd_script')
end