golf 0.3.2 → 0.3.3
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/golf/cli.rb +2 -2
- data/lib/golf/version.rb +1 -1
- metadata +1 -1
data/lib/golf/cli.rb
CHANGED
@@ -19,7 +19,7 @@ module Golf
|
|
19
19
|
directory("templates/#{template}", name)
|
20
20
|
end
|
21
21
|
end
|
22
|
-
|
22
|
+
|
23
23
|
desc "raw", "Dumps a raw hello world golfapp into current dir"
|
24
24
|
def raw
|
25
25
|
directory("templates/raw", "golfapp")
|
@@ -37,7 +37,7 @@ module Golf
|
|
37
37
|
package_name = name
|
38
38
|
end
|
39
39
|
create_file "components/#{package_name}/#{component_name}.html" do
|
40
|
-
File.read("templates/component/Component.html")
|
40
|
+
File.read(File.expand_path("../../../templates/component/Component.html", __FILE__))
|
41
41
|
end
|
42
42
|
end
|
43
43
|
end
|
data/lib/golf/version.rb
CHANGED