Sha256: 0361d6276f00ace742a1d994081eec4928e5a5bbb283e1eca2085f635376fe39

Contents?: true

Size: 703 Bytes

Versions: 2

Compression:

Stored size: 703 Bytes

Contents

require_relative "../command"

module Spline   
  class InstallCommand < Command

    def install
      processes_dir_exists = File.directory?("#{Dir.pwd}/process_definition/processes")
      actions_dir_exists = File.directory?("#{Dir.pwd}/process_definition/actions")

      if processes_dir_exists && actions_dir_exists
        say("spline is already setup")
        return
      end

      template('templates/my_first_action.tt', "process_definition/actions/example/my_first_action.rb")
      template('templates/my_second_action.tt', "process_definition/actions/example/my_second_action.rb")
      template('templates/my_process.tt', "process_definition/processes/my_process.rb")
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
spline-0.0.16 lib/spline/commands/concrete_commands/install_command.rb
spline-0.0.15 lib/spline/commands/concrete_commands/install_command.rb