Sha256: 5460f4a94213ed1e5ad3eef59b15479cb4a9ca5bcda865c61a164e16b08ae370

Contents?: true

Size: 815 Bytes

Versions: 6

Compression:

Stored size: 815 Bytes

Contents

require "sfn"

module Sfn
  class Config
    # Generate graph
    class Graph < Validate
      attribute(
        :output_file, String,
        :description => "Directory to write graph files",
        :short_flag => "O",
        :default => File.join(Dir.pwd, "sfn-graph"),
      )

      attribute(
        :output_type, String,
        :description => "File output type (Requires graphviz package for non-dot types)",
        :short_flag => "e",
        :default => "dot",
      )

      attribute(
        :graph_style, String,
        :description => "Style of graph (`dependency`, `creation`)",
        :default => "creation",
      )

      attribute(
        :luckymike, [TrueClass, FalseClass],
        :description => "Force `dependency` style graph",
        :default => false,
      )
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
sfn-3.1.8 lib/sfn/config/graph.rb
sfn-3.1.6 lib/sfn/config/graph.rb
sfn-3.1.4 lib/sfn/config/graph.rb
sfn-3.1.2 lib/sfn/config/graph.rb
sfn-3.1.0 lib/sfn/config/graph.rb
sfn-3.0.32 lib/sfn/config/graph.rb