Sha256: a6fe8e07b0de2d22a70e1403a3738dd0de2b3a45b7742f343cf0b1ce60ffa188

Contents?: true

Size: 367 Bytes

Versions: 10

Compression:

Stored size: 367 Bytes

Contents

module Percheron
  module Commands
    class Graph < Abstract

      parameter('STACK_NAME', 'stack name', required: true)
      option([ '-o', '--output' ], 'OUTPUT', 'Output file')

      def execute
        super
        stack.graph!(output || default_output)
      end

      def default_output
        'percheron_%s.png' % stack.name
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
percheron-0.8.1 lib/percheron/commands/graph.rb
percheron-0.8.0 lib/percheron/commands/graph.rb
percheron-0.7.16 lib/percheron/commands/graph.rb
percheron-0.7.15 lib/percheron/commands/graph.rb
percheron-0.7.14 lib/percheron/commands/graph.rb
percheron-0.7.13 lib/percheron/commands/graph.rb
percheron-0.7.12 lib/percheron/commands/graph.rb
percheron-0.7.11 lib/percheron/commands/graph.rb
percheron-0.7.10 lib/percheron/commands/graph.rb
percheron-0.7.9 lib/percheron/commands/graph.rb