Sha256: ed85dfd00007b20904371ed1818cdfd64379d6c2b604fdce5df73f2d99f22ac1

Contents?: true

Size: 1.13 KB

Versions: 6

Compression:

Stored size: 1.13 KB

Contents

# -*- encoding : utf-8 -*-
class Card; module Set; module Right; module MachineOutput; extend Card::Set
# ~~~~~~~~~~~ above autogenerated; below pulled from /Users/ethan/dev/wagn/gem/card/mod/03_machines/set/right/machine_output.rb ~~~~~~~~~~~
def followable?
  false
end

def history?
  false
end

format do
  view :not_found do |args|
    if update_machine_output_live?
      Card::Cache.reset_global # FIXME - wow, this kind of hard core, no?
      root.error_status = 302
      card.left.update_machine_output
      card_path card.left.machine_output_url
    else
      super args
    end
  end

  def update_machine_output_live?
    said = card.selected_action_id
    card.left.kind_of? Machine and                                  # must be a machine
    !card.left.locked?         and                                  # machine must not already be running
    ( card.new_card? or !said or said == card.last_action_id )      # must want current output (won't re-output old stuff)
  end

end


# ~~~~~~~~~~~ below autogenerated; above pulled from /Users/ethan/dev/wagn/gem/card/mod/03_machines/set/right/machine_output.rb ~~~~~~~~~~~
end;end;end;end;

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
card-1.16.15 tmpsets/set/mod004-03_machines/right/machine_output.rb
card-1.16.14 tmpsets/set/mod004-03_machines/right/machine_output.rb
card-1.16.13 tmpsets/set/mod004-03_machines/right/machine_output.rb
card-1.16.12 tmpsets/set/mod004-03_machines/right/machine_output.rb
card-1.16.11 tmpsets/set/mod004-03_machines/right/machine_output.rb
card-1.16.10 tmpsets/set/mod004-03_machines/right/machine_output.rb