Class: FPM::Scriptable::Constants
- Inherits:
-
Object
- Object
- FPM::Scriptable::Constants
- Includes:
- Singleton
- Defined in:
- lib/fpm/scriptable/constants.rb
Defined Under Namespace
Classes: ScriptConstants
Instance Attribute Summary collapse
-
#author ⇒ Object
Returns the value of attribute author.
-
#cfg_file ⇒ Object
Returns the value of attribute cfg_file.
-
#log_level ⇒ Object
Returns the value of attribute log_level.
-
#name ⇒ Object
Returns the value of attribute name.
-
#script ⇒ Object
Returns the value of attribute script.
-
#version ⇒ Object
Returns the value of attribute version.
-
#website ⇒ Object
Returns the value of attribute website.
Instance Method Summary collapse
-
#initialize ⇒ Constants
constructor
A new instance of Constants.
Constructor Details
#initialize ⇒ Constants
Returns a new instance of Constants.
28 29 30 31 32 33 34 35 36 |
# File 'lib/fpm/scriptable/constants.rb', line 28 def initialize @name = FPM::Scriptable::NAME @version = FPM::Scriptable::VERSION @author = "#{FPM::Scriptable::AUTHOR} #{FPM::Scriptable::EMAIL}" @website = FPM::Scriptable::WEBSITE @log_level = :info @script = ScriptConstants.new end |
Instance Attribute Details
#author ⇒ Object
Returns the value of attribute author.
20 21 22 |
# File 'lib/fpm/scriptable/constants.rb', line 20 def @author end |
#cfg_file ⇒ Object
Returns the value of attribute cfg_file.
20 21 22 |
# File 'lib/fpm/scriptable/constants.rb', line 20 def cfg_file @cfg_file end |
#log_level ⇒ Object
Returns the value of attribute log_level.
20 21 22 |
# File 'lib/fpm/scriptable/constants.rb', line 20 def log_level @log_level end |
#name ⇒ Object
Returns the value of attribute name.
20 21 22 |
# File 'lib/fpm/scriptable/constants.rb', line 20 def name @name end |
#script ⇒ Object
Returns the value of attribute script.
20 21 22 |
# File 'lib/fpm/scriptable/constants.rb', line 20 def script @script end |
#version ⇒ Object
Returns the value of attribute version.
20 21 22 |
# File 'lib/fpm/scriptable/constants.rb', line 20 def version @version end |
#website ⇒ Object
Returns the value of attribute website.
20 21 22 |
# File 'lib/fpm/scriptable/constants.rb', line 20 def website @website end |