Sha256: c514139dd10b22ab2b1525f66ed12cbee3a66d977d14689bf896c4660cab8d04
Contents?: true
Size: 357 Bytes
Versions: 2
Compression:
Stored size: 357 Bytes
Contents
module Sinatra class EnvCommand < Sinatra::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(pwd) self.env = args[1] || "development" ENV["RACK_ENV"] = self.env end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
sinatra-template-1.2.0 | lib/sinatra/commands/env_command.rb |
sinatra-template-1.1.0 | lib/sinatra/commands/env_command.rb |