Class: Bim::Subcommands::Pool

Inherits:
Thor
  • Object
show all
Defined in:
lib/bim/subcommands/pool.rb

Overview

Pool class defines subcommands

Instance Method Summary collapse

Instance Method Details

#add(name) ⇒ Object



66
67
68
# File 'lib/bim/subcommands/pool.rb', line 66

def add(name)
  puts Bim::Action::Pool.add_members(name, options[:members])
end

#create(name) ⇒ Object



20
21
22
# File 'lib/bim/subcommands/pool.rb', line 20

def create(name)
  puts Bim::Action::Pool.create(name, options[:monitor], options[:slow_ramp_time], options[:members])
end

#disable(name) ⇒ Object



57
58
59
# File 'lib/bim/subcommands/pool.rb', line 57

def disable(name)
  puts Bim::Action::Pool.disable(name, options[:members])
end

#drop(name) ⇒ Object



75
76
77
# File 'lib/bim/subcommands/pool.rb', line 75

def drop(name)
  puts Bim::Action::Pool.drop_members(name, options[:members])
end

#enable(name) ⇒ Object



48
49
50
# File 'lib/bim/subcommands/pool.rb', line 48

def enable(name)
  puts Bim::Action::Pool.enable(name, options[:members])
end

#lsObject



9
10
11
# File 'lib/bim/subcommands/pool.rb', line 9

def ls
  puts Bim::Action::Pool.ls
end

#members(name) ⇒ Object



39
40
41
# File 'lib/bim/subcommands/pool.rb', line 39

def members(name)
  puts Bim::Action::Pool.members(name)
end

#update(name) ⇒ Object



31
32
33
# File 'lib/bim/subcommands/pool.rb', line 31

def update(name)
  puts Bim::Action::Pool.update(name, options[:monitor], options[:slow_ramp_time], options[:members])
end