Class: Tagenv::CLI
- Inherits:
-
Thor
- Object
- Thor
- Tagenv::CLI
- Defined in:
- lib/tagenv/cli.rb
Instance Method Summary collapse
-
#initialize(args = [], options = {}, config = {}) ⇒ CLI
constructor
A new instance of CLI.
- #load ⇒ Object
- #version ⇒ Object
Constructor Details
#initialize(args = [], options = {}, config = {}) ⇒ CLI
Returns a new instance of CLI.
9 10 11 12 |
# File 'lib/tagenv/cli.rb', line 9 def initialize(args = [], = {}, config = {}) super(args, , config) @global_options = config[:shell].base. end |
Instance Method Details
#load ⇒ Object
19 20 21 22 23 24 25 26 |
# File 'lib/tagenv/cli.rb', line 19 def load Tagenv.load( prefix: [:prefix], instance_id: [:instance_id], provider: [:provider] ) p ENV if [:print] end |
#version ⇒ Object
29 30 31 |
# File 'lib/tagenv/cli.rb', line 29 def version puts VERSION end |