crafti 0.0.13 → 0.0.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 13ea227789cafb852fbd8d3a81cb72d104c00a71
4
- data.tar.gz: b471cde02e859acb4343e8a277d99b1710a66de4
3
+ metadata.gz: a33d6e67d327ef357f8b99f11d19157efa18f3ab
4
+ data.tar.gz: a1eb3c793f936be3c3ad5a40ecaa312d2b4a0c67
5
5
  SHA512:
6
- metadata.gz: 2f3023ce1732cb165bea4302cfb530e7903125645b2932683dfc9e01411eb0aa469bb925f0ba9287ace193e7cf48056677e1bb1626f2dd22bdd7013864bfe816
7
- data.tar.gz: cd84a44cc901ab53b7337eec89af0627d9ef2474044fabd3e9cf215045c22a8b8a7f800adcb42a83342e0cc5893a2fa597c3ecdaf012b29fd2fd572a933b2514
6
+ metadata.gz: 338bc394389de1cfb5936710fb9cd1092a2df8e563b6b3d9836f3260ec4ad9e3ecda3b01aa3cdc0993bf36b558998d9c2887aa68b378dcd642b54272c7f3b95f
7
+ data.tar.gz: 29e8228b39542ee0f2773f0f51c091c5ae23a4d9cdc4548ddbf16a66bf3e0b2841ffec638b80aa81ee53561690604e5c34d8c5ce1a65dad950816d00dbc3348f
data/bin/crafti CHANGED
@@ -4,6 +4,7 @@ require 'rubygems'
4
4
  require 'crafti'
5
5
 
6
6
  options = Crafti::CLI.parse(ARGV)
7
+
7
8
  if options.event == "generate"
8
9
  Crafti::FileReader.new(options.template_path).evaluate
9
10
  else
data/lib/crafti/cli.rb CHANGED
@@ -8,11 +8,16 @@ module Crafti
8
8
  options.event = args.reverse.pop
9
9
 
10
10
  opt_parser = OptionParser.new do |opts|
11
- opts.banner = "Usage: crafti generate -m ~/path/to/template.rb"
11
+ opts.banner = <<-TEXT
12
+
13
+ *** Crafti - Application Generation Simplified ***
14
+
15
+ Usage: crafti generate -m ~/path/to/template.rb
16
+ TEXT
12
17
  opts.separator ""
13
18
 
14
- opts.on("-m", "--template", "Path to the application template") do |template|
15
- options.template_path = template
19
+ opts.on("-t", "--template PATH", "Path to the application template") do |path|
20
+ options.template_path = path
16
21
  end
17
22
 
18
23
  opts.on_tail("-h", "--help", "Help message") do
@@ -1,7 +1,7 @@
1
1
  module Crafti
2
2
  MAJOR = 0
3
3
  MINOR = 0
4
- PATCH = 13
4
+ PATCH = 14
5
5
 
6
6
  def self.version
7
7
  [
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: crafti
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.13
4
+ version: 0.0.14
5
5
  platform: ruby
6
6
  authors:
7
7
  - Robert Evans