Sha256: c64c3cd540f77211207f520e1a6f22898df928a78efb05d8172c4a8fca4c6f3f

Contents?: true

Size: 588 Bytes

Versions: 5

Compression:

Stored size: 588 Bytes

Contents

module Awspec::Generator
  module Doc
    module Type
      def self.generate_doc
        Aws.config[:stub_responses] = true
        types = Awspec::Helper::Type::TYPES
        types.delete('base')
        links = types.map do |type|
          '[' + type + '](#' + type + ')'
        end
        header = <<-'EOF'
# Resource Types

<%= links.join("\n| ") %>

EOF
        doc = ERB.new(header, nil, '-').result(binding)

        types.map do |type|
          doc += eval "Awspec::Generator::Doc::Type::#{type.camelize}.new.generate_doc"
        end
        doc
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
awspec-0.13.0 lib/awspec/generator/doc/type.rb
awspec-0.12.1 lib/awspec/generator/doc/type.rb
awspec-0.12.0 lib/awspec/generator/doc/type.rb
awspec-0.11.0 lib/awspec/generator/doc/type.rb
awspec-0.10.2 lib/awspec/generator/doc/type.rb