Class: OsCtld::Commands::Group::DeviceAdd

Inherits:
Logged
  • Object
show all
Includes:
OsCtl::Lib::Utils::Log, Utils::Devices
Defined in:
lib/osctld/commands/group/device_add.rb

Instance Method Summary collapse

Methods included from Utils::Devices

#add, #check_mode!, #chmod, #inherit, #list, #promote, #replace, #set_inherit, #unset_inherit

Methods inherited from Logged

#base_execute

Instance Method Details

#execute(grp) ⇒ Object



15
16
17
18
19
# File 'lib/osctld/commands/group/device_add.rb', line 15

def execute(grp)
  manipulate(grp) do
    add(grp)
  end
end

#findObject



10
11
12
13
# File 'lib/osctld/commands/group/device_add.rb', line 10

def find
  grp = DB::Groups.find(opts[:name], opts[:pool])
  grp || error!('group not found')
end