Class: Spline::StepCommand

Inherits:
Command
  • Object
show all
Defined in:
lib/spline/commands/concrete_commands/step_command.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Command

alias, command_name, source_root

Class Method Details

.descriptionObject



14
15
16
# File 'lib/spline/commands/concrete_commands/step_command.rb', line 14

def self.description
  "generates a step stub"
end

.usageObject



18
19
20
# File 'lib/spline/commands/concrete_commands/step_command.rb', line 18

def self.usage
  "step NAMESPACE NAME"
end

Instance Method Details

#generate_stepObject



10
11
12
# File 'lib/spline/commands/concrete_commands/step_command.rb', line 10

def generate_step
  template('templates/definitions/step.tt', "process_definition/steps/#{namespace}/#{name}.rb")
end