Class: Jasminewebos::Generator
- Inherits:
-
Object
- Object
- Jasminewebos::Generator
- Defined in:
- lib/jasminewebos/generator.rb
Instance Method Summary collapse
-
#initialize(config) ⇒ Generator
constructor
A new instance of Generator.
- #run ⇒ Object
Constructor Details
#initialize(config) ⇒ Generator
Returns a new instance of Generator.
4 5 6 |
# File 'lib/jasminewebos/generator.rb', line 4 def initialize(config) @config = config end |
Instance Method Details
#run ⇒ Object
7 8 9 10 11 |
# File 'lib/jasminewebos/generator.rb', line 7 def run from = File.(File.join(File.dirname(__FILE__), "..", "..", "templates", "webos", "spec")) FileUtils.cp_r(from, @config.application_root) end |