Class: Gzr::Commands::Look
- Inherits:
-
SubCommandBase
show all
- Defined in:
- lib/gzr/commands/look.rb,
lib/gzr/commands/look/rm.rb,
lib/gzr/commands/look/cat.rb,
lib/gzr/commands/look/import.rb
Defined Under Namespace
Classes: Cat, Import, Rm
Instance Method Summary
collapse
banner, subcommand_prefix
Instance Method Details
#cat(look_id) ⇒ Object
65
66
67
68
69
70
71
72
|
# File 'lib/gzr/commands/look.rb', line 65
def cat(look_id)
if options[:help]
invoke :help, ['cat']
else
require_relative 'look/cat'
Gzr::Commands::Look::Cat.new(look_id, options).execute
end
end
|
#import(file, dest_space_id) ⇒ Object
49
50
51
52
53
54
55
56
|
# File 'lib/gzr/commands/look.rb', line 49
def import(file,dest_space_id)
if options[:help]
invoke :help, ['import']
else
require_relative 'look/import'
Gzr::Commands::Look::Import.new(file, dest_space_id, options).execute
end
end
|
#rm(look_id) ⇒ Object
35
36
37
38
39
40
41
42
|
# File 'lib/gzr/commands/look.rb', line 35
def rm(look_id)
if options[:help]
invoke :help, ['rm']
else
require_relative 'look/rm'
Gzr::Commands::Look::Rm.new(look_id, options).execute
end
end
|