Sha256: ec7a818eaa829f4f54318092824dfef4c1057b34d9ab4a72f4d34473f03bce6c

Contents?: true

Size: 924 Bytes

Versions: 60

Compression:

Stored size: 924 Bytes

Contents

controller :my_controller do
  services :vm

  on_entry %{
    entry_move_params = [];
    entry_modify_params = [];
    entry_del_params = [];
    entry_ins_params = [];
    next_changed_params = [];
    head_changed_params = [];
  }

  action :my_action do
    on_entry %{
      var info = {ns: "dummy", id: "default"};
      Request("vm", "watch", info);
    }

    on "entry_move", %{
      entry_move_called = true;
      entry_move_params.push(params);
    }

    on "entry_modify", %{
      entry_modify_called = true;
      entry_modify_params.push(params);
    }

    on "entry_del", %{
      entry_del_called = true;
      entry_del_params.push(params);
    }

    on "entry_ins", %{
      entry_ins_called = true;
      entry_ins_params.push(params);
    }

    on "head_changed", %{
      head_changed_params.push(params);
    }

    on "next_changed", %{
      next_changed_params.push(params);
    }
  end
end

Version data entries

60 entries across 60 versions & 1 rubygems

Version Path
flok-0.0.105 spec/kern/assets/vm/controller0_diff.rb
flok-0.0.103 spec/kern/assets/vm/controller0_diff.rb
flok-0.0.102 spec/kern/assets/vm/controller0_diff.rb
flok-0.0.101 spec/kern/assets/vm/controller0_diff.rb
flok-0.0.100 spec/kern/assets/vm/controller0_diff.rb
flok-0.0.99 spec/kern/assets/vm/controller0_diff.rb
flok-0.0.98 spec/kern/assets/vm/controller0_diff.rb
flok-0.0.97 spec/kern/assets/vm/controller0_diff.rb
flok-0.0.96 spec/kern/assets/vm/controller0_diff.rb
flok-0.0.95 spec/kern/assets/vm/controller0_diff.rb
flok-0.0.94 spec/kern/assets/vm/controller0_diff.rb
flok-0.0.93 spec/kern/assets/vm/controller0_diff.rb
flok-0.0.92 spec/kern/assets/vm/controller0_diff.rb
flok-0.0.91 spec/kern/assets/vm/controller0_diff.rb
flok-0.0.90 spec/kern/assets/vm/controller0_diff.rb
flok-0.0.89 spec/kern/assets/vm/controller0_diff.rb
flok-0.0.88 spec/kern/assets/vm/controller0_diff.rb
flok-0.0.87 spec/kern/assets/vm/controller0_diff.rb
flok-0.0.86 spec/kern/assets/vm/controller0_diff.rb
flok-0.0.85 spec/kern/assets/vm/controller0_diff.rb