Class: Gzr::Commands::Dashboard
- Inherits:
-
SubCommandBase
show all
- Defined in:
- lib/gzr/commands/dashboard.rb,
lib/gzr/commands/dashboard/rm.rb,
lib/gzr/commands/dashboard/cat.rb,
lib/gzr/commands/dashboard/import.rb
Defined Under Namespace
Classes: Cat, Import, Rm
Instance Method Summary
collapse
banner, subcommand_prefix
Instance Method Details
#cat(dashboard_id) ⇒ Object
39
40
41
42
43
44
45
46
|
# File 'lib/gzr/commands/dashboard.rb', line 39
def cat(dashboard_id)
if options[:help]
invoke :help, ['cat']
else
require_relative 'dashboard/cat'
Gzr::Commands::Dashboard::Cat.new(dashboard_id, options).execute
end
end
|
#import(file, dest_space_id) ⇒ Object
53
54
55
56
57
58
59
60
|
# File 'lib/gzr/commands/dashboard.rb', line 53
def import(file,dest_space_id)
if options[:help]
invoke :help, ['import']
else
require_relative 'dashboard/import'
Gzr::Commands::Dashboard::Import.new(file, dest_space_id, options).execute
end
end
|
#rm(id) ⇒ Object
65
66
67
68
69
70
71
72
|
# File 'lib/gzr/commands/dashboard.rb', line 65
def rm(id)
if options[:help]
invoke :help, ['rm']
else
require_relative 'dashboard/rm'
Gzr::Commands::Dashboard::Rm.new(id, options).execute
end
end
|