Sha256: b08f742614da41218216f388eeddc1d4e9ff496037b3c43cfc7768c663db2735

Contents?: true

Size: 363 Bytes

Versions: 7

Compression:

Stored size: 363 Bytes

Contents

module Deano
  class EnvCommand < Deano::Command
    include FileUtils

    attr_accessor :args, :env

    def self.inherited(klass)
      Command.inherited(klass)
    end

    def initialize(args)
      self.args = args
      @app_dir = File.expand_path(FileUtils.pwd)
      self.env = args[1] || "development"
      ENV["RACK_ENV"] = self.env
    end

  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

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