Class: BatCave::Command::Update

Inherits:
Clamp::Command
  • Object
show all
Defined in:
lib/batcave/command/update.rb

Instance Method Summary collapse

Instance Method Details

#executeObject



9
10
11
12
13
14
15
# File 'lib/batcave/command/update.rb', line 9

def execute
  store = BatCave::Store.new
  store.each(@environment) do |thing, settings|
    args = settings["args"]
    BatCave::Action::Add.new(thing, args).execute
  end
end