spline 0.1.1 → 0.1.2

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: f21946e2a5ef36d924ab6b82ed8e6c19da197c6f
4
- data.tar.gz: 4d7eb2ce637eef09a59b85d28310c7a314ff6f04
3
+ metadata.gz: 55265228d534cb4ffced44969c826050e6c28a1a
4
+ data.tar.gz: 9bd816f6fb065f754e960723ba36568c2cf521ae
5
5
  SHA512:
6
- metadata.gz: ef3b92ad227402882e401eae713df471b31fec4e51266e6d5826dd7b4c71d1244d5f3df2fd74b1d1467243d2db32434b0ae9ed08d5e21bc480419a8aaf972cf8
7
- data.tar.gz: e67c84625aafa6f37e1fdb68f9719b696c429c6d8e76ee752a6422b01ca993263ef094979c805a55ae4e774253850d03f158c09124677ed19a71fcefdf9af459
6
+ metadata.gz: fec0b0f4de769395f9d870a7a058e03f01048908cea64bdd298f403f69e9e7dbb4c5f59d0dff4eeb7864565af8150c25a84a3e2c4d41248a3b25902011d0a16a
7
+ data.tar.gz: bf5c66a8423f891d670c65a0d53d11cecbcc59327e22588eb33ec515ae437eae73ac031975dbd46e609aa4ca47a87164f4c39d6a1d1238871b330fc6df15a332
@@ -0,0 +1,30 @@
1
+ require_relative "../command"
2
+
3
+ module Spline
4
+
5
+ class NewCommand < Command
6
+
7
+ argument :name, :desc => "The name of the project"
8
+
9
+ def generate_gemfile
10
+ template('templates/configs/gemfile.tt', "#{name}/Gemfile")
11
+ end
12
+
13
+ def setup_project
14
+ template('templates/samples/my_first_step.tt', "#{name}/process_definition/steps/example/my_first_step.rb")
15
+ template('templates/samples/my_second_step.tt', "#{name}/process_definition/steps/example/my_second_step.rb")
16
+ template('templates/samples/my_process.tt', "#{name}/process_definition/processes/my_process.rb")
17
+ say("spline is setup, don't forget to cd into #{name}")
18
+ end
19
+
20
+ def self.description
21
+ "generates a project skeleton"
22
+ end
23
+
24
+ def self.usage
25
+ "new NAME"
26
+ end
27
+
28
+ end
29
+
30
+ end
@@ -0,0 +1,3 @@
1
+ source 'https://rubygems.org'
2
+
3
+ gem 'spline'
@@ -1,3 +1,3 @@
1
1
  module Spline
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spline
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mrav Atomski
@@ -68,10 +68,12 @@ files:
68
68
  - bin/spline
69
69
  - lib/spline.rb
70
70
  - lib/spline/commands/command.rb
71
+ - lib/spline/commands/concrete_commands/new_command.rb
71
72
  - lib/spline/commands/concrete_commands/process_command.rb
72
73
  - lib/spline/commands/concrete_commands/setup_command.rb
73
74
  - lib/spline/commands/concrete_commands/step_command.rb
74
75
  - lib/spline/spline_cli.rb
76
+ - lib/spline/templates/configs/gemfile.tt
75
77
  - lib/spline/templates/definitions/process.tt
76
78
  - lib/spline/templates/definitions/step.tt
77
79
  - lib/spline/templates/samples/my_first_step.tt