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