class Sinatra::EnvCommand
Attributes
args[RW]
env[RW]
Public Class Methods
inherited(klass)
click to toggle source
# File lib/sinatra/commands/env_command.rb, line 7 def self.inherited(klass) Command.inherited(klass) end
new(args)
click to toggle source
# File lib/sinatra/commands/env_command.rb, line 11 def initialize(args) self.args = args @app_dir = File.expand_path(FileUtils.pwd) self.env = args[1] || "development" ENV["RACK_ENV"] = self.env end