class SakurraForm::Collection
Attributes
resources[RW]
type[RW]
Public Class Methods
new(type)
click to toggle source
# File lib/sakurraform/collections.rb, line 4 def initialize(type) @type = type @resources = Array.new end
Public Instance Methods
collection_resources(enable_remote = false)
click to toggle source
# File lib/sakurraform/collections.rb, line 9 def collection_resources(enable_remote = false) configuration = SakurraForm::Plans[@type.to_sym] configuration.each do |conf| @resources << SakurraForm::Resource.const_get(type.capitalize).new(conf[:name], enable_remote) end if configuration end