Class: TinyZap::CLI
- Inherits:
-
Thor
- Object
- Thor
- TinyZap::CLI
- Includes:
- Thor::Actions
- Defined in:
- lib/tinyzap/cli.rb
Instance Method Summary collapse
- #environment(environment = TinyZap::KeyGenerator::ENVIRONMENT) ⇒ Object
- #install ⇒ Object
- #version ⇒ Object
Instance Method Details
#environment(environment = TinyZap::KeyGenerator::ENVIRONMENT) ⇒ Object
19 20 21 |
# File 'lib/tinyzap/cli.rb', line 19 def environment(environment = TinyZap::KeyGenerator::ENVIRONMENT) puts TinyZap.key_generator(environment: environment).env_vars end |
#install ⇒ Object
8 9 10 11 |
# File 'lib/tinyzap/cli.rb', line 8 def install run "./bin/bundle add tinyzap" run "./bin/rails generate tinyzap:install" end |