4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
# File 'lib/high_five/init_task.rb', line 4
def self.included(mod)
mod.class_eval do
desc "init", "Initialize the high_five configuration in the current working directory"
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
platforms = ["android", "ios"]
platforms.each do |platform|
copy_file "app-platform.js", "app-#{platform}.js", :skip => true
end
end
end
end
end
end
|