Class: Jasminewebos::Generator

Inherits:
Object
  • Object
show all
Defined in:
lib/jasminewebos/generator.rb

Instance Method Summary collapse

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

#runObject



7
8
9
10
11
# File 'lib/jasminewebos/generator.rb', line 7

def run
  from = File.expand_path(File.join(File.dirname(__FILE__), "..", "..", "templates", "webos", "spec"))
  FileUtils.cp_r(from,
                 @config.application_root)
end