Class: Promote::RoleFile
- Inherits:
-
Object
- Object
- Promote::RoleFile
- Defined in:
- lib/promote/role_file.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
Returns the value of attribute name.
Instance Method Summary collapse
- #file_path ⇒ Object
-
#initialize(role_name, config) ⇒ RoleFile
constructor
A new instance of RoleFile.
Constructor Details
#initialize(role_name, config) ⇒ RoleFile
Returns a new instance of RoleFile.
7 8 9 10 |
# File 'lib/promote/role_file.rb', line 7 def initialize(role_name, config) @name = role_name @config = config end |
Instance Attribute Details
#name ⇒ Object
Returns the value of attribute name.
5 6 7 |
# File 'lib/promote/role_file.rb', line 5 def name @name end |
Instance Method Details
#file_path ⇒ Object
12 13 14 |
# File 'lib/promote/role_file.rb', line 12 def file_path File.join(@config.role_directory, "#{name}.json") end |