Class: Promote::RoleFile

Inherits:
Object
  • Object
show all
Defined in:
lib/promote/role_file.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#nameObject

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_pathObject



12
13
14
# File 'lib/promote/role_file.rb', line 12

def file_path
  File.join(@config.role_directory, "#{name}.json")
end