Sha256: 846939a782c2912328b111bd599d4308edcd98e116ba6be204dd4e27855630dd

Contents?: true

Size: 522 Bytes

Versions: 37

Compression:

Stored size: 522 Bytes

Contents

require 'hammer_cli/defaults'

module HammerCLI
  def self.context
    @context ||= {
      :defaults => HammerCLI.defaults,
      :is_tty? => HammerCLI.tty?,
      :api_connection => HammerCLI::Connection.new(Logging.logger['Connection']),
      :no_headers => HammerCLI::Settings.get(:ui, :no_headers),
      :use_defaults => HammerCLI::Settings.get(:use_defaults),
      :capitalization => HammerCLI.capitalization,
      :verbosity => (HammerCLI::Settings.get(:verbosity) || HammerCLI::V_VERBOSE).to_i
    }
  end
end

Version data entries

37 entries across 37 versions & 1 rubygems

Version Path
hammer_cli-2.4.0 lib/hammer_cli/context.rb
hammer_cli-2.3.0 lib/hammer_cli/context.rb
hammer_cli-2.2.1 lib/hammer_cli/context.rb
hammer_cli-2.1.2 lib/hammer_cli/context.rb
hammer_cli-2.2.0 lib/hammer_cli/context.rb
hammer_cli-2.1.1 lib/hammer_cli/context.rb
hammer_cli-2.1.0 lib/hammer_cli/context.rb
hammer_cli-2.0.0 lib/hammer_cli/context.rb
hammer_cli-0.19.2 lib/hammer_cli/context.rb
hammer_cli-0.19.1 lib/hammer_cli/context.rb
hammer_cli-0.18.1 lib/hammer_cli/context.rb
hammer_cli-0.19.0 lib/hammer_cli/context.rb
hammer_cli-0.18.0 lib/hammer_cli/context.rb
hammer_cli-0.17.1 lib/hammer_cli/context.rb
hammer_cli-0.17.0 lib/hammer_cli/context.rb
hammer_cli-0.16.0 lib/hammer_cli/context.rb
hammer_cli-0.15.1 lib/hammer_cli/context.rb