Class: Imageomatic::CLI

Inherits:
Thor
  • Object
show all
Includes:
Thor::Actions
Defined in:
lib/imageomatic/cli.rb

Instance Method Summary collapse

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

#installObject



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

#versionObject



14
15
16
# File 'lib/imageomatic/cli.rb', line 14

def version
  puts Imageomatic::VERSION
end