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.64 spec/kern/assets/vm/controller0_diff.rb
flok-0.0.63 spec/kern/assets/vm/controller0_diff.rb
flok-0.0.62 spec/kern/assets/vm/controller0_diff.rb
flok-0.0.61 spec/kern/assets/vm/controller0_diff.rb
flok-0.0.60 spec/kern/assets/vm/controller0_diff.rb
flok-0.0.57 spec/kern/assets/vm/controller0_diff.rb
flok-0.0.56 spec/kern/assets/vm/controller0_diff.rb
flok-0.0.55 spec/kern/assets/vm/controller0_diff.rb
flok-0.0.54 spec/kern/assets/vm/controller0_diff.rb
flok-0.0.53 spec/kern/assets/vm/controller0_diff.rb
flok-0.0.52 spec/kern/assets/vm/controller0_diff.rb
flok-0.0.51 spec/kern/assets/vm/controller0_diff.rb
flok-0.0.50 spec/kern/assets/vm/controller0_diff.rb
flok-0.0.49 spec/kern/assets/vm/controller0_diff.rb
flok-0.0.48 spec/kern/assets/vm/controller0_diff.rb
flok-0.0.47 spec/kern/assets/vm/controller0_diff.rb
flok-0.0.45 spec/kern/assets/vm/controller0_diff.rb
flok-0.0.44 spec/kern/assets/vm/controller0_diff.rb
flok-0.0.43 spec/kern/assets/vm/controller0_diff.rb
flok-0.0.42 spec/kern/assets/vm/controller0_diff.rb