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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 55265228d534cb4ffced44969c826050e6c28a1a
|
4
|
+
data.tar.gz: 9bd816f6fb065f754e960723ba36568c2cf521ae
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
data/lib/spline/version.rb
CHANGED
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.
|
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
|