Sha256: a83329fde9c7ccf2af943d3a127aa051f49ae40b929150251027bd8888a48934

Contents?: true

Size: 438 Bytes

Versions: 7

Compression:

Stored size: 438 Bytes

Contents

module Deano
  class StartCommand < Deano::EnvCommand

    def self.command
      "start"
    end

    def self.help
      "[environment]\t\t# default: development"
    end

    def call
      path = app_path("Procfile.#{self.env}")
      if File.exists?(path)
        cmd "bundle exec foreman start -f #{path}"
      else
        path = app_path("Procfile")
        cmd "bundle exec foreman start -f #{path}"
      end
    end

  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
deano-1.2.1 lib/deano/commands/start_command.rb
deano-1.2.0 lib/deano/commands/start_command.rb
deano-1.1.3 lib/deano/commands/start_command.rb
deano-1.1.2 lib/deano/commands/start_command.rb
deano-1.1.1 lib/deano/commands/start_command.rb
deano-1.1.0 lib/deano/commands/start_command.rb
deano-1.0.0 lib/deano/commands/start_command.rb