Commit 7735b605 authored by Samuel Giddins's avatar Samuel Giddins

[Generator::Constant] Add a generator that just writes a constant string

parent 40ea27f0
......@@ -57,6 +57,7 @@ module Pod
autoload :Markdown, 'cocoapods/generator/acknowledgements/markdown'
autoload :Plist, 'cocoapods/generator/acknowledgements/plist'
autoload :BridgeSupport, 'cocoapods/generator/bridge_support'
autoload :Constant, 'cocoapods/generator/constant'
autoload :CopyResourcesScript, 'cocoapods/generator/copy_resources_script'
autoload :DummySource, 'cocoapods/generator/dummy_source'
autoload :EmbedFrameworksScript, 'cocoapods/generator/embed_frameworks_script'
......
module Pod
module Generator
# Generates a constant file.
#
class Constant
def initialize(contents)
@generate = contents
end
attr_reader :generate
def save_as(path)
path.open('w') do |f|
f.write(generate)
end
end
end
end
end
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment