Class: Toodledo::CommandLine::SetupCommand
- Inherits:
-
BaseCommand
- Object
- CmdParse::Command
- BaseCommand
- Toodledo::CommandLine::SetupCommand
- Defined in:
- lib/toodledo/command_line/setup_command.rb
Instance Method Summary collapse
- #execute(args) ⇒ Object
-
#initialize(client) ⇒ SetupCommand
constructor
A new instance of SetupCommand.
Methods inherited from BaseCommand
Constructor Details
#initialize(client) ⇒ SetupCommand
Returns a new instance of SetupCommand.
4 5 6 7 8 |
# File 'lib/toodledo/command_line/setup_command.rb', line 4 def initialize(client) super(client, 'setup', false) self.short_desc = "Setup the configuration file" self.description = "Creates (and edits) the configuration file for Toodledo." end |
Instance Method Details
#execute(args) ⇒ Object
10 11 12 |
# File 'lib/toodledo/command_line/setup_command.rb', line 10 def execute(args) client.setup end |