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.84 spec/kern/assets/vm/controller0_diff.rb
flok-0.0.83 spec/kern/assets/vm/controller0_diff.rb
flok-0.0.82 spec/kern/assets/vm/controller0_diff.rb
flok-0.0.81 spec/kern/assets/vm/controller0_diff.rb
flok-0.0.80 spec/kern/assets/vm/controller0_diff.rb
flok-0.0.79 spec/kern/assets/vm/controller0_diff.rb
flok-0.0.78 spec/kern/assets/vm/controller0_diff.rb
flok-0.0.77 spec/kern/assets/vm/controller0_diff.rb
flok-0.0.76 spec/kern/assets/vm/controller0_diff.rb
flok-0.0.75 spec/kern/assets/vm/controller0_diff.rb
flok-0.0.74 spec/kern/assets/vm/controller0_diff.rb
flok-0.0.73 spec/kern/assets/vm/controller0_diff.rb
flok-0.0.72 spec/kern/assets/vm/controller0_diff.rb
flok-0.0.71 spec/kern/assets/vm/controller0_diff.rb
flok-0.0.70 spec/kern/assets/vm/controller0_diff.rb
flok-0.0.69 spec/kern/assets/vm/controller0_diff.rb
flok-0.0.68 spec/kern/assets/vm/controller0_diff.rb
flok-0.0.67 spec/kern/assets/vm/controller0_diff.rb
flok-0.0.66 spec/kern/assets/vm/controller0_diff.rb
flok-0.0.65 spec/kern/assets/vm/controller0_diff.rb