Class: S3crets::Cli
- Inherits:
-
Thor
- Object
- Thor
- S3crets::Cli
- Includes:
- Thor::Actions
- Defined in:
- lib/s3crets/cli.rb
Overview
The ‘s3crets` binay/thor application main class
Instance Attribute Summary collapse
-
#ui ⇒ Object
Returns the value of attribute ui.
Instance Method Summary collapse
- #bundle ⇒ Object (also: #plunder, #install)
- #get(key) ⇒ Object
- #init ⇒ Object
-
#initialize ⇒ Cli
constructor
A new instance of Cli.
- #update ⇒ Object
- #version ⇒ Object
Constructor Details
Instance Attribute Details
#ui ⇒ Object
Returns the value of attribute ui.
14 15 16 |
# File 'lib/s3crets/cli.rb', line 14 def ui @ui end |
Instance Method Details
#bundle ⇒ Object Also known as: plunder, install
49 50 51 |
# File 'lib/s3crets/cli.rb', line 49 def bundle run_action { bundle! } end |
#get(key) ⇒ Object
74 75 76 |
# File 'lib/s3crets/cli.rb', line 74 def get(key) run_action { get! key } end |
#init ⇒ Object
43 44 45 |
# File 'lib/s3crets/cli.rb', line 43 def init run_action { init! } end |
#update ⇒ Object
62 63 64 |
# File 'lib/s3crets/cli.rb', line 62 def update run_action { update! } end |
#version ⇒ Object
27 28 29 |
# File 'lib/s3crets/cli.rb', line 27 def version say "#{APPLICATION_NAME} Version: #{VERSION}" end |