Class: TinyZap::CLI

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

Instance Method Summary collapse

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

#installObject



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

#versionObject



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

def version
  puts TinyZap::VERSION
end