Sha256: 79c24f9781ae6f91cb2b3dd0e2113777b3161b19301c36da39111bd8716fc2ce

Contents?: true

Size: 358 Bytes

Versions: 6

Compression:

Stored size: 358 Bytes

Contents

require 'rzo/app/subcommand'
module Rzo
  class App
    ##
    # Load all rizzo config files and print the config
    class Config < Subcommand
      attr_reader :config
      def run
        exit_status = 0
        load_config!
        write_file(opts[:output]) { |fd| fd.puts(JSON.pretty_generate(config)) }
        exit_status
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
rzo-0.7.0 lib/rzo/app/config.rb
rzo-0.6.0 lib/rzo/app/config.rb
rzo-0.5.0 lib/rzo/app/config.rb
rzo-0.4.0 lib/rzo/app/config.rb
rzo-0.3.0 lib/rzo/app/config.rb
rzo-0.2.0 lib/rzo/app/config.rb