Class: HighFive::Thor::Tasks::Init
- Inherits:
-
HighFive::Thor::Task
- Object
- Thor
- HighFive::Thor::Task
- HighFive::Thor::Tasks::Init
- Includes:
- Thor::Actions
- Defined in:
- lib/high_five/thor/tasks/init.rb
Instance Method Summary collapse
Methods inherited from HighFive::Thor::Task
Instance Method Details
#init ⇒ Object
10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 |
# File 'lib/high_five/thor/tasks/init.rb', line 10 def init self.destination_root = Dir.pwd self.source_paths << HighFive::TEMPLATE_PATH inside "config" do template("high_five.rb") inside "high_five" do copy_file "index.html.erb", :skip => true copy_file "app-common.js", :skip => true #TODO make this a CLI argument platforms = ["android", "ios"] platforms.each do |platform| copy_file "app-platform.js", "app-#{platform}.js", :skip => true end end end end |