Class: Nachos::CLI
- Inherits:
-
Thor
- Object
- Thor
- Nachos::CLI
- Defined in:
- lib/nachos/cli.rb
Instance Attribute Summary collapse
-
#config ⇒ Object
readonly
Returns the value of attribute config.
-
#main ⇒ Object
readonly
Returns the value of attribute main.
Instance Method Summary collapse
- #info ⇒ Object
-
#initialize(*args) ⇒ CLI
constructor
A new instance of CLI.
- #sync ⇒ Object
- #watched ⇒ Object
Constructor Details
Instance Attribute Details
#config ⇒ Object (readonly)
Returns the value of attribute config.
3 4 5 |
# File 'lib/nachos/cli.rb', line 3 def config @config end |
#main ⇒ Object (readonly)
Returns the value of attribute main.
3 4 5 |
# File 'lib/nachos/cli.rb', line 3 def main @main end |
Instance Method Details
#info ⇒ Object
12 13 14 |
# File 'lib/nachos/cli.rb', line 12 def info shell.say main.info end |
#sync ⇒ Object
24 25 26 27 |
# File 'lib/nachos/cli.rb', line 24 def sync shell.say main.github_summary main.sync end |
#watched ⇒ Object
17 18 19 20 21 |
# File 'lib/nachos/cli.rb', line 17 def watched main.watched.each do |repo| shell.say "#{repo.owner}/#{repo.name} - #{repo.description}" end end |