ashmckenzie/percheron

View on GitHub
lib/percheron/commands/graph.rb

Summary

Maintainability
A
0 mins
Test Coverage
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