Class: Gzr::Commands::Model::Set
- Inherits:
-
SubCommandBase
show all
- Defined in:
- lib/gzr/commands/model/set.rb,
lib/gzr/commands/model/set/ls.rb,
lib/gzr/commands/model/set/rm.rb,
lib/gzr/commands/model/set/cat.rb,
lib/gzr/commands/model/set/import.rb
Defined Under Namespace
Classes: Cat, Delete, Import, Ls
Instance Method Summary
collapse
banner, subcommand_prefix
Instance Method Details
#cat(model_set_id) ⇒ Object
58
59
60
61
62
63
64
65
|
# File 'lib/gzr/commands/model/set.rb', line 58
def cat(model_set_id)
if options[:help]
invoke :help, ['cat']
else
require_relative 'set/cat'
Gzr::Commands::Model::Set::Cat.new(model_set_id,options).execute
end
end
|
#import(file) ⇒ Object
74
75
76
77
78
79
80
81
|
# File 'lib/gzr/commands/model/set.rb', line 74
def import(file)
if options[:help]
invoke :help, ['import']
else
require_relative 'set/import'
Gzr::Commands::Model::Set::Import.new(file, options).execute
end
end
|
#ls ⇒ Object
42
43
44
45
46
47
48
49
|
# File 'lib/gzr/commands/model/set.rb', line 42
def ls(*)
if options[:help]
invoke :help, ['ls']
else
require_relative 'set/ls'
Gzr::Commands::Model::Set::Ls.new(options).execute
end
end
|
#rm(model_set_id) ⇒ Object
86
87
88
89
90
91
92
93
|
# File 'lib/gzr/commands/model/set.rb', line 86
def rm(model_set_id)
if options[:help]
invoke :help, ['delete']
else
require_relative 'set/rm'
Gzr::Commands::Model::Set::Delete.new(model_set_id,options).execute
end
end
|