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-3.13.0 lib/hammer_cli/context.rb
hammer_cli-3.12.0 lib/hammer_cli/context.rb
hammer_cli-3.10.0 lib/hammer_cli/context.rb
hammer_cli-3.9.0 lib/hammer_cli/context.rb
hammer_cli-3.8.0 lib/hammer_cli/context.rb
hammer_cli-3.7.0 lib/hammer_cli/context.rb
hammer_cli-3.5.1 lib/hammer_cli/context.rb
hammer_cli-3.6.0 lib/hammer_cli/context.rb
hammer_cli-3.5.0 lib/hammer_cli/context.rb
hammer_cli-3.4.0 lib/hammer_cli/context.rb
hammer_cli-3.3.0 lib/hammer_cli/context.rb
hammer_cli-3.2.0 lib/hammer_cli/context.rb
hammer_cli-3.1.1 lib/hammer_cli/context.rb
hammer_cli-3.0.2 lib/hammer_cli/context.rb
hammer_cli-3.1.0 lib/hammer_cli/context.rb
hammer_cli-3.0.1 lib/hammer_cli/context.rb
hammer_cli-3.0.0 lib/hammer_cli/context.rb
hammer_cli-2.5.1 lib/hammer_cli/context.rb
hammer_cli-2.5.0 lib/hammer_cli/context.rb
hammer_cli-2.3.1 lib/hammer_cli/context.rb