Class: Gzr::Commands::Attribute
- Inherits:
-
Thor
- Object
- Thor
- Gzr::Commands::Attribute
show all
- Defined in:
- lib/gzr/commands/attribute.rb,
lib/gzr/commands/attribute/ls.rb,
lib/gzr/commands/attribute/rm.rb,
lib/gzr/commands/attribute/cat.rb,
lib/gzr/commands/attribute/create.rb,
lib/gzr/commands/attribute/import.rb,
lib/gzr/commands/attribute/get_group_value.rb,
lib/gzr/commands/attribute/set_group_value.rb
Defined Under Namespace
Classes: Cat, Create, GetGroupValue, Import, Ls, Rm, SetGroupValue
Instance Method Summary
collapse
Instance Method Details
#cat(attr) ⇒ Object
121
122
123
124
125
126
127
128
|
# File 'lib/gzr/commands/attribute.rb', line 121
def cat(attr)
if options[:help]
invoke :help, ['cat']
else
require_relative 'attribute/cat'
Gzr::Commands::Attribute::Cat.new(attr,options).execute
end
end
|
#create(attr_name, attr_label = nil) ⇒ Object
105
106
107
108
109
110
111
112
|
# File 'lib/gzr/commands/attribute.rb', line 105
def create(attr_name, attr_label=nil)
if options[:help]
invoke :help, ['create']
else
require_relative 'attribute/create'
Gzr::Commands::Attribute::Create.new(attr_name, attr_label, options).execute
end
end
|
#get_group_value(group, attr) ⇒ Object
47
48
49
50
51
52
53
54
|
# File 'lib/gzr/commands/attribute.rb', line 47
def get_group_value(group,attr)
if options[:help]
invoke :help, ['get_group_value']
else
require_relative 'attribute/get_group_value'
Gzr::Commands::Attribute::GetGroupValue.new(group,attr,options).execute
end
end
|
#import(file) ⇒ Object
77
78
79
80
81
82
83
84
|
# File 'lib/gzr/commands/attribute.rb', line 77
def import(file)
if options[:help]
invoke :help, ['import']
else
require_relative 'attribute/import'
Gzr::Commands::Attribute::Import.new(file,options).execute
end
end
|
#ls ⇒ Object
139
140
141
142
143
144
145
146
|
# File 'lib/gzr/commands/attribute.rb', line 139
def ls(*)
if options[:help]
invoke :help, ['ls']
else
require_relative 'attribute/ls'
Gzr::Commands::Attribute::Ls.new(options).execute
end
end
|
#rm(attr) ⇒ Object
61
62
63
64
65
66
67
68
|
# File 'lib/gzr/commands/attribute.rb', line 61
def rm(attr)
if options[:help]
invoke :help, ['rm']
else
require_relative 'attribute/rm'
Gzr::Commands::Attribute::Rm.new(attr,options).execute
end
end
|
#set_group_value(group, attr, value) ⇒ Object
35
36
37
38
39
40
41
42
|
# File 'lib/gzr/commands/attribute.rb', line 35
def set_group_value(group,attr,value)
if options[:help]
invoke :help, ['set_group_value']
else
require_relative 'attribute/set_group_value'
Gzr::Commands::Attribute::SetGroupValue.new(group,attr,value,options).execute
end
end
|