Class: Trellodon::CLI
- Inherits:
-
Object
- Object
- Trellodon::CLI
- Defined in:
- lib/trellodon/cli.rb
Defined Under Namespace
Instance Attribute Summary collapse
-
#logger ⇒ Object
readonly
Returns the value of attribute logger.
-
#scheduler ⇒ Object
readonly
Returns the value of attribute scheduler.
Instance Method Summary collapse
-
#initialize ⇒ CLI
constructor
A new instance of CLI.
- #run ⇒ Object
Constructor Details
#initialize ⇒ CLI
Returns a new instance of CLI.
104 105 106 107 108 |
# File 'lib/trellodon/cli.rb', line 104 def initialize @config = Config.new @scheduler = Schedulers::Inline.new @logger = Config.logger end |
Instance Attribute Details
#logger ⇒ Object (readonly)
Returns the value of attribute logger.
121 122 123 |
# File 'lib/trellodon/cli.rb', line 121 def logger @logger end |
#scheduler ⇒ Object (readonly)
Returns the value of attribute scheduler.
121 122 123 |
# File 'lib/trellodon/cli.rb', line 121 def scheduler @scheduler end |
Instance Method Details
#run ⇒ Object
110 111 112 113 114 115 116 117 118 119 |
# File 'lib/trellodon/cli.rb', line 110 def run check_command! need_to_fill_config = config.to_h[:api_key].nil? executor = Trellodon::Executor.new() ask_save_credentials if need_to_fill_config executor.download(config.board) end |