Sha256: d28c63eb2e5fce0df2d131a64a6e85db692a5e708e9d4cc5255c880f970c2d91

Contents?: true

Size: 709 Bytes

Versions: 1

Compression:

Stored size: 709 Bytes

Contents

require_relative "../command"

module Spline
  
  class InstallCommand < Command

    def install
      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
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
spline-0.0.17 lib/spline/commands/concrete_commands/install_command.rb