Class: Pike13::CLI::Commands::Desk::Plan
- Inherits:
-
Base
- Object
- Thor
- Base
- Pike13::CLI::Commands::Desk::Plan
show all
- Defined in:
- lib/pike13/cli/commands/desk/plan.rb
Instance Method Summary
collapse
Methods inherited from Base
base_usage, format_options, handle_argument_error, printable_commands
included
Instance Method Details
#get(id) ⇒ Object
22
23
24
|
# File 'lib/pike13/cli/commands/desk/plan.rb', line 22
def get(id)
handle_error { output(Pike13::Desk::Plan.find(id)) }
end
|
#list ⇒ Object
11
12
13
14
15
16
17
18
|
# File 'lib/pike13/cli/commands/desk/plan.rb', line 11
def list
handle_error do
result = with_progress("Fetching plans") do
Pike13::Desk::Plan.all
end
output(result)
end
end
|