Class: FPM::Fry::Plugin::Service::Environment
- Inherits:
-
Struct
- Object
- Struct
- FPM::Fry::Plugin::Service::Environment
- Defined in:
- lib/fpm/fry/plugin/service.rb
Instance Attribute Summary collapse
-
#chdir ⇒ Object
Returns the value of attribute chdir.
-
#command ⇒ Object
Returns the value of attribute command.
-
#description ⇒ Object
Returns the value of attribute description.
-
#group ⇒ Object
Returns the value of attribute group.
-
#limits ⇒ Object
Returns the value of attribute limits.
-
#name ⇒ Object
Returns the value of attribute name.
-
#user ⇒ Object
Returns the value of attribute user.
Instance Method Summary collapse
Instance Attribute Details
#chdir ⇒ Object
Returns the value of attribute chdir
9 10 11 |
# File 'lib/fpm/fry/plugin/service.rb', line 9 def chdir @chdir end |
#command ⇒ Object
Returns the value of attribute command
9 10 11 |
# File 'lib/fpm/fry/plugin/service.rb', line 9 def command @command end |
#description ⇒ Object
Returns the value of attribute description
9 10 11 |
# File 'lib/fpm/fry/plugin/service.rb', line 9 def description @description end |
#group ⇒ Object
Returns the value of attribute group
9 10 11 |
# File 'lib/fpm/fry/plugin/service.rb', line 9 def group @group end |
#limits ⇒ Object
Returns the value of attribute limits
9 10 11 |
# File 'lib/fpm/fry/plugin/service.rb', line 9 def limits @limits end |
#name ⇒ Object
Returns the value of attribute name
9 10 11 |
# File 'lib/fpm/fry/plugin/service.rb', line 9 def name @name end |
#user ⇒ Object
Returns the value of attribute user
9 10 11 |
# File 'lib/fpm/fry/plugin/service.rb', line 9 def user @user end |
Instance Method Details
#render(file) ⇒ Object
11 12 13 14 15 16 17 |
# File 'lib/fpm/fry/plugin/service.rb', line 11 def render(file) _erbout = "" path = File.join(File.dirname(__FILE__),'..','templates',file) erb = ERB.new(IO.read(path), trim_mode: "-") eval erb.src, nil, path return _erbout end |