spline 0.0.17 → 0.0.18
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 +4 -4
- data/lib/spline/commands/command.rb +1 -1
- data/lib/spline/commands/concrete_commands/process_command.rb +8 -0
- data/lib/spline/commands/concrete_commands/{install_command.rb → setup_command.rb} +12 -3
- data/lib/spline/commands/concrete_commands/step_command.rb +8 -0
- data/lib/spline/spline_cli.rb +1 -1
- data/lib/spline/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2167f6e8cecd011c86db0e981ec53dc6a00fc449
|
4
|
+
data.tar.gz: fbfdf9333d34e7e65f9ca1a4766d5dc58176ae09
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9e6a334a1c456290b1f4ecf701f14c51536be33d223b1c8007355f0b3309700aed673c8cf8d8cfa4be362ba51f6d98fa49d16b67f92e920122d6babd711a7ad6
|
7
|
+
data.tar.gz: c9f04e6895f69a1018f186e2dae5799349be39e37250ea55b121a896e08f1aafa8080af3a71a42b8dcc7013ee3cc13f2113d43cf38e703a2f1d2fbeb8d58b145
|
@@ -10,6 +10,14 @@ module Spline
|
|
10
10
|
template('templates/definitions/process.tt', "process_definition/processes/#{name}.rb")
|
11
11
|
end
|
12
12
|
|
13
|
+
def self.description
|
14
|
+
"generates a process stub"
|
15
|
+
end
|
16
|
+
|
17
|
+
def self.usage
|
18
|
+
"spline process NAME"
|
19
|
+
end
|
20
|
+
|
13
21
|
end
|
14
22
|
|
15
23
|
end
|
@@ -1,10 +1,10 @@
|
|
1
1
|
require_relative "../command"
|
2
2
|
|
3
3
|
module Spline
|
4
|
-
|
5
|
-
class InstallCommand < Command
|
6
4
|
|
7
|
-
|
5
|
+
class SetupCommand < Command
|
6
|
+
|
7
|
+
def setup
|
8
8
|
processes_dir_exists = File.directory?("#{Dir.pwd}/process_definition/processes")
|
9
9
|
steps_dir_exists = File.directory?("#{Dir.pwd}/process_definition/steps")
|
10
10
|
|
@@ -17,5 +17,14 @@ module Spline
|
|
17
17
|
template('templates/samples/my_second_step.tt', "process_definition/steps/example/my_second_step.rb")
|
18
18
|
template('templates/samples/my_process.tt', "process_definition/processes/my_process.rb")
|
19
19
|
end
|
20
|
+
|
21
|
+
def self.description
|
22
|
+
"generates necessary folders and a couple of sample files"
|
23
|
+
end
|
24
|
+
|
25
|
+
def self.usage
|
26
|
+
"spline setup"
|
27
|
+
end
|
28
|
+
|
20
29
|
end
|
21
30
|
end
|
@@ -11,6 +11,14 @@ module Spline
|
|
11
11
|
template('templates/definitions/step.tt', "process_definition/steps/#{namespace}/#{name}.rb")
|
12
12
|
end
|
13
13
|
|
14
|
+
def self.description
|
15
|
+
"generates a step stub"
|
16
|
+
end
|
17
|
+
|
18
|
+
def self.usage
|
19
|
+
"spline step NAMESPACE NAME"
|
20
|
+
end
|
21
|
+
|
14
22
|
end
|
15
23
|
|
16
24
|
end
|
data/lib/spline/spline_cli.rb
CHANGED
@@ -11,7 +11,7 @@ module Spline
|
|
11
11
|
commands = Spline.constants.select { |c| c.match(/\w+Command/) && Spline.const_get(c).is_a?(Class) }
|
12
12
|
commands.each do |command|
|
13
13
|
commandClass = Spline.const_get(command)
|
14
|
-
register(commandClass, commandClass.alias, commandClass.
|
14
|
+
register(commandClass, commandClass.alias, commandClass.usage, commandClass.description)
|
15
15
|
end
|
16
16
|
end
|
17
17
|
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.0.
|
4
|
+
version: 0.0.18
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mrav Atomski
|
@@ -68,8 +68,8 @@ files:
|
|
68
68
|
- bin/spline
|
69
69
|
- lib/spline.rb
|
70
70
|
- lib/spline/commands/command.rb
|
71
|
-
- lib/spline/commands/concrete_commands/install_command.rb
|
72
71
|
- lib/spline/commands/concrete_commands/process_command.rb
|
72
|
+
- lib/spline/commands/concrete_commands/setup_command.rb
|
73
73
|
- lib/spline/commands/concrete_commands/step_command.rb
|
74
74
|
- lib/spline/spline_cli.rb
|
75
75
|
- lib/spline/templates/definitions/process.tt
|