67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
|
# File 'lib/awspec/generator/template.rb', line 67
def self.generate_generator_doc
path = 'lib/awspec/generator/doc/type/' + @type.underscore + '.rb'
content = "module Awspec::Generator\n module Doc\nmodule Type\n class \#{@type.camelize} < Base\n def initialize\n super\n @type_name = '\#{@type.camelize}'\n @type = Awspec::Type::\#{@type.camelize}.new('my-\#{@type.underscore.tr('_', '-')}')\n @ret = @type.resource_via_client\n @matchers = []\n @ignore_matchers = []\n @describes = []\n end\n end\nend\n end\nend\n"
self.file_check_and_puts(path, content)
end
|