Class: Bim::Subcommands::Pool
- Inherits:
-
Thor
- Object
- Thor
- Bim::Subcommands::Pool
- Defined in:
- lib/bim/subcommands/pool.rb
Overview
Pool class defines subcommands
Instance Method Summary collapse
- #add(name) ⇒ Object
- #create(name) ⇒ Object
- #disable(name) ⇒ Object
- #drop(name) ⇒ Object
- #enable(name) ⇒ Object
- #ls ⇒ Object
- #members(name) ⇒ Object
- #update(name) ⇒ Object
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, [: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, [:monitor], [:slow_ramp_time], [: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, [: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, [: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, [:members]) end |
#ls ⇒ Object
9 10 11 |
# File 'lib/bim/subcommands/pool.rb', line 9 def ls puts Bim::Action::Pool.ls end |