Sha256: 885258898bd7c84e26bac22de4348172f65da11e30719ad5067d581031070ba7
Contents?: true
Size: 852 Bytes
Versions: 2
Compression:
Stored size: 852 Bytes
Contents
require_relative "../command" module Spline class SetupCommand < Command def setup processes_dir_exists = File.directory?("#{Dir.pwd}/process_definition/processes") steps_dir_exists = File.directory?("#{Dir.pwd}/process_definition/steps") if processes_dir_exists && steps_dir_exists say("spline is already setup") return end template('templates/samples/my_first_step.tt', "process_definition/steps/example/my_first_step.rb") template('templates/samples/my_second_step.tt', "process_definition/steps/example/my_second_step.rb") template('templates/samples/my_process.tt', "process_definition/processes/my_process.rb") end def self.description "generates necessary folders and a couple of sample files" end def self.usage "spline setup" end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
spline-0.0.19 | lib/spline/commands/concrete_commands/setup_command.rb |
spline-0.0.18 | lib/spline/commands/concrete_commands/setup_command.rb |