Sha256: 31f624fe878f611a78d9eff3018318f5f188b80dba231588c023e0d0eea2de89

Contents?: true

Size: 413 Bytes

Versions: 5

Compression:

Stored size: 413 Bytes

Contents

# frozen_string_literal: true

require 'puppet-debugger/input_responder_plugin'
module PuppetDebugger
  module InputResponders
    class Environment < InputResponderPlugin
      COMMAND_WORDS = %w[environment].freeze
      SUMMARY = 'Show the current environment name'
      COMMAND_GROUP = :context

      def run(_args = [])
        "Puppet Environment: #{debugger.puppet_env_name}"
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
puppet-debugger-1.4.0 lib/plugins/puppet-debugger/input_responders/environment.rb
puppet-debugger-1.3.0 lib/plugins/puppet-debugger/input_responders/environment.rb
puppet-debugger-1.2.0 lib/plugins/puppet-debugger/input_responders/environment.rb
puppet-debugger-1.1.0 lib/plugins/puppet-debugger/input_responders/environment.rb
puppet-debugger-1.0.0 lib/plugins/puppet-debugger/input_responders/environment.rb