Class: Bolt::ModuleInstaller::Puppetfile::Module

Inherits:
Object
  • Object
show all
Defined in:
lib/bolt/module_installer/puppetfile/module.rb

Direct Known Subclasses

ForgeModule, GitModule

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name) ⇒ Module

Returns a new instance of Module.



11
12
13
# File 'lib/bolt/module_installer/puppetfile/module.rb', line 11

def initialize(name)
  @full_name, @name = parse_name(name)
end

Instance Attribute Details

#full_nameObject (readonly)

Returns the value of attribute full_name.



9
10
11
# File 'lib/bolt/module_installer/puppetfile/module.rb', line 9

def full_name
  @full_name
end

#nameObject (readonly)

Returns the value of attribute name.



9
10
11
# File 'lib/bolt/module_installer/puppetfile/module.rb', line 9

def name
  @name
end

#typeObject (readonly)

Returns the value of attribute type.



9
10
11
# File 'lib/bolt/module_installer/puppetfile/module.rb', line 9

def type
  @type
end