Class: Gzr::Commands::Dashboard
- Inherits:
-
SubCommandBase
show all
- Defined in:
- lib/gzr/commands/dashboard.rb,
lib/gzr/commands/dashboard/mv.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, Mv, Rm
Instance Method Summary
collapse
banner, subcommand_prefix
Instance Method Details
#cat(dashboard_id) ⇒ Object
57
58
59
60
61
62
63
64
|
# File 'lib/gzr/commands/dashboard.rb', line 57
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
73
74
75
76
77
78
79
80
|
# File 'lib/gzr/commands/dashboard.rb', line 73
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
|
#mv(dashboard_id, target_space_id) ⇒ Object
37
38
39
40
41
42
43
44
|
# File 'lib/gzr/commands/dashboard.rb', line 37
def mv(dashboard_id, target_space_id)
if options[:help]
invoke :help, ['mv']
else
require_relative 'dashboard/mv'
Gzr::Commands::Dashboard::Mv.new(dashboard_id, target_space_id, options).execute
end
end
|
#rm(id) ⇒ Object
89
90
91
92
93
94
95
96
|
# File 'lib/gzr/commands/dashboard.rb', line 89
def rm(id)
if options[:help]
invoke :help, ['rm']
else
require_relative 'dashboard/rm'
Gzr::Commands::Dashboard::Rm.new(id, options).execute
end
end
|