Class: Envs::CLI
- Inherits:
-
Object
- Object
- Envs::CLI
- Defined in:
- lib/envs/cli.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.run ⇒ Object
5 6 7 |
# File 'lib/envs/cli.rb', line 5 def self.run new.run end |
Instance Method Details
#run ⇒ Object
9 10 11 12 13 14 15 16 17 |
# File 'lib/envs/cli.rb', line 9 def run global_opts = Trollop:: do "Manage environment variables on a per-project basis" opt :no_color, "Don't be colorized", :short => "-c" opt :root, "Project root directory", :short => "-r", :default => Dir.pwd end runner = Runner.new(global_opts) runner.run end |