spline 0.0.17 → 0.0.18

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7d46591f492eee2cbe0ba968af74c3148398a843
4
- data.tar.gz: 7e7e524525e37ed761009bcca4c7d73dc12034e7
3
+ metadata.gz: 2167f6e8cecd011c86db0e981ec53dc6a00fc449
4
+ data.tar.gz: fbfdf9333d34e7e65f9ca1a4766d5dc58176ae09
5
5
  SHA512:
6
- metadata.gz: f501fffa3b4a63cd6ae32bdc2be62cd99fdd06edb9be9936b922e33b39158060093b121ea4a8a82ce143f92f6a9226a1814085ce12f4834bbe52f34c3179af63
7
- data.tar.gz: deed0f6d1f33db4b46eed8e5b787ddee5f3014eedfdbc00b151dbde53ad32093e489e8341ac7ecf44c2e6dd525d6d466643766d4ab9670766033d30e26dc8be6
6
+ metadata.gz: 9e6a334a1c456290b1f4ecf701f14c51536be33d223b1c8007355f0b3309700aed673c8cf8d8cfa4be362ba51f6d98fa49d16b67f92e920122d6babd711a7ad6
7
+ data.tar.gz: c9f04e6895f69a1018f186e2dae5799349be39e37250ea55b121a896e08f1aafa8080af3a71a42b8dcc7013ee3cc13f2113d43cf38e703a2f1d2fbeb8d58b145
@@ -19,7 +19,7 @@ module Spline
19
19
  command_name
20
20
  end
21
21
 
22
- def self.usage_tip
22
+ def self.usage
23
23
  command_name
24
24
  end
25
25
 
@@ -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
- def install
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
@@ -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.usage_tip, commandClass.description)
14
+ register(commandClass, commandClass.alias, commandClass.usage, commandClass.description)
15
15
  end
16
16
  end
17
17
  end
@@ -1,3 +1,3 @@
1
1
  module Spline
2
- VERSION = "0.0.17"
2
+ VERSION = "0.0.18"
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.0.17
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