Class: Deano::EnvCommand
- Includes:
- FileUtils
- Defined in:
- lib/deano/commands/env_command.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#args ⇒ Object
Returns the value of attribute args.
-
#env ⇒ Object
Returns the value of attribute env.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(args) ⇒ EnvCommand
constructor
A new instance of EnvCommand.
Methods inherited from Command
#app_path, #cmd, command, commands, #rm, #rm_r, #template_path
Constructor Details
#initialize(args) ⇒ EnvCommand
Returns a new instance of EnvCommand.
11 12 13 14 15 16 |
# File 'lib/deano/commands/env_command.rb', line 11 def initialize(args) self.args = args @app_dir = File.(FileUtils.pwd) self.env = args[1] || "development" ENV["RACK_ENV"] = self.env end |
Instance Attribute Details
#args ⇒ Object
Returns the value of attribute args.
5 6 7 |
# File 'lib/deano/commands/env_command.rb', line 5 def args @args end |
#env ⇒ Object
Returns the value of attribute env.
5 6 7 |
# File 'lib/deano/commands/env_command.rb', line 5 def env @env end |