91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
|
# File 'lib/awspec/generator/template.rb', line 91
def self.generate_account_attribute_generator_doc
path = 'lib/awspec/generator/doc/type/' + @type.underscore + '.rb'
content = <<-"EOF"
module Awspec::Generator
module Doc
module Type
class #{@type.camelize} < AccountAttributeBase
def initialize
super
@type_name = '#{@type.camelize}'
@type = Awspec::Type::#{@type.camelize}.new
@ret = @type.resource_via_client
@matchers = []
@ignore_matchers = []
@describes = []
end
end
end
end
end
EOF
self.file_check_and_puts(path, content)
end
|