Sha256: 720e382f0b53b71a5f8e2314bf9b562173b7e20b1a0b18dd5ff098ee004e232c

Contents?: true

Size: 593 Bytes

Versions: 9

Compression:

Stored size: 593 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.to_camel_case}.new.generate_doc"
        end
        doc
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
awspec-0.10.1 lib/awspec/generator/doc/type.rb
awspec-0.10.0 lib/awspec/generator/doc/type.rb
awspec-0.9.0 lib/awspec/generator/doc/type.rb
awspec-0.8.1 lib/awspec/generator/doc/type.rb
awspec-0.8.0 lib/awspec/generator/doc/type.rb
awspec-0.7.0 lib/awspec/generator/doc/type.rb
awspec-0.6.4 lib/awspec/generator/doc/type.rb
awspec-0.6.3 lib/awspec/generator/doc/type.rb
awspec-0.6.2 lib/awspec/generator/doc/type.rb