Sha256: 70174ad5039652995d4e8f031a8de4e4d50551728935a1bed5926732cf3fd852

Contents?: true

Size: 323 Bytes

Versions: 5

Compression:

Stored size: 323 Bytes

Contents

namespace :graph do
  desc 'draw the graph of a state machine'
  task :draw, [:state_machine_class] => [:environment] do |_, args|
    state_machine_class = Object.const_get(args.fetch(:state_machine_class))
    state_machine = state_machine_class.state_machine
    NxtStateMachine::Graph.new(state_machine).draw
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
nxt_state_machine-0.1.12 lib/tasks/draw_graph.rake
nxt_state_machine-0.1.11 lib/tasks/draw_graph.rake
nxt_state_machine-0.1.10 lib/tasks/draw_graph.rake
nxt_state_machine-0.1.9 lib/tasks/draw_graph.rake
nxt_state_machine-0.1.8 lib/tasks/draw_graph.rake