golf 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/lib/golf/cli.rb +7 -3
  2. data/lib/golf/version.rb +1 -1
  3. metadata +1 -1
data/lib/golf/cli.rb CHANGED
@@ -11,9 +11,13 @@ module Golf
11
11
  File.expand_path("../../../", __FILE__)
12
12
  end
13
13
 
14
- desc "new [NAME]", "Creates new golf app"
15
- def new(name)
16
- directory("templates/new", name)
14
+ desc "new [NAME] (optional)[TEMPLATE]", "Creates new golf app, takes NAME and optionally TEMPLATE"
15
+ def new(name, template = false)
16
+ unless template
17
+ directory("templates/new", name)
18
+ else
19
+ directory("templates/#{template}", name)
20
+ end
17
21
  end
18
22
 
19
23
  desc "server", "Run the golf app"
data/lib/golf/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Golf
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.3"
3
3
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: golf
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.1.2
5
+ version: 0.1.3
6
6
  platform: ruby
7
7
  authors:
8
8
  - Micha Niskin, Alan Dipert, Julio Capote