Class: FPM::Scriptable::Constants

Inherits:
Object
  • Object
show all
Includes:
Singleton
Defined in:
lib/fpm/scriptable/constants.rb

Defined Under Namespace

Classes: ScriptConstants

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConstants

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

#authorObject

Returns the value of attribute author.



20
21
22
# File 'lib/fpm/scriptable/constants.rb', line 20

def author
  @author
end

#cfg_fileObject

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_levelObject

Returns the value of attribute log_level.



20
21
22
# File 'lib/fpm/scriptable/constants.rb', line 20

def log_level
  @log_level
end

#nameObject

Returns the value of attribute name.



20
21
22
# File 'lib/fpm/scriptable/constants.rb', line 20

def name
  @name
end

#scriptObject

Returns the value of attribute script.



20
21
22
# File 'lib/fpm/scriptable/constants.rb', line 20

def script
  @script
end

#versionObject

Returns the value of attribute version.



20
21
22
# File 'lib/fpm/scriptable/constants.rb', line 20

def version
  @version
end

#websiteObject

Returns the value of attribute website.



20
21
22
# File 'lib/fpm/scriptable/constants.rb', line 20

def website
  @website
end