Sha256: 4f16704a05d58c4df5beef5221912d22496dcd149d90d09a637a602577052d77

Contents?: true

Size: 567 Bytes

Versions: 23

Compression:

Stored size: 567 Bytes

Contents

$LOAD_PATH << File.dirname(__FILE__)

require 'yaml'
require 'erb'
require 'cfnlego/cloudformation'
require 'cfnlego/resource'
require 'cfnlego/version'

module Cfnlego
  def self.Resources
    basedir = File.join("#{File.realpath(File.dirname(__FILE__))}", "cfnlego","resources", File::SEPARATOR)
    resource_yaml_files = File.join(basedir, "**", "*.yaml")
    resources = []
    Dir.glob(resource_yaml_files) do |filename| 
      resources << filename.sub(/#{basedir}/, '').gsub(/#{File::SEPARATOR}/, '::').sub(/\.yaml/, '')
    end
    return resources
  end
end

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
cfnlego-0.6.3 lib/cfnlego.rb
cfnlego-0.6.2 lib/cfnlego.rb
cfnlego-0.6.1 lib/cfnlego.rb
cfnlego-0.6.0 lib/cfnlego.rb
cfnlego-0.5.1 lib/cfnlego.rb
cfnlego-0.5.0 lib/cfnlego.rb
cfnlego-0.4.0 lib/cfnlego.rb
cfnlego-0.3.6 lib/cfnlego.rb
cfnlego-0.3.5 lib/cfnlego.rb
cfnlego-0.3.4 lib/cfnlego.rb
cfnlego-0.3.3 lib/cfnlego.rb
cfnlego-0.3.2 lib/cfnlego.rb
cfnlego-0.3.1 lib/cfnlego.rb
cfnlego-0.3.0 lib/cfnlego.rb
cfnlego-0.2.9 lib/cfnlego.rb
cfnlego-0.2.8 lib/cfnlego.rb
cfnlego-0.2.7 lib/cfnlego.rb
cfnlego-0.2.6 lib/cfnlego.rb
cfnlego-0.2.5 lib/cfnlego.rb
cfnlego-0.2.4 lib/cfnlego.rb