Sha256: 313ddbbcaddacbe1a9c484dd1b6d6fb6667480b886778644ce0189f217d56379

Contents?: true

Size: 573 Bytes

Versions: 345

Compression:

Stored size: 573 Bytes

Contents

# frozen_string_literal: true

require 'active_support/concern'
require 'eac_ruby_utils/boolean'
require 'eac_ruby_utils/envs/ssh_env/dasho_options'

module EacRubyUtils
  module Envs
    class SshEnv < ::EacRubyUtils::Envs::BaseEnv
      module Quiet
        extend ::ActiveSupport::Concern

        included do
          include ::EacRubyUtils::Envs::SshEnv::DashoOptions
          add_nodasho_option('Quiet')
        end

        def ssh_command_line_quiet_args(value)
          ::EacRubyUtils::Boolean.parse(value) ? ['-q'] : []
        end
      end
    end
  end
end

Version data entries

345 entries across 345 versions & 4 rubygems

Version Path
eac_ruby_utils-0.124.0 lib/eac_ruby_utils/envs/ssh_env/quiet.rb
eac_tools-0.97.2 sub/eac_ruby_utils/lib/eac_ruby_utils/envs/ssh_env/quiet.rb
eac_ruby_utils-0.123.0 lib/eac_ruby_utils/envs/ssh_env/quiet.rb
eac_ruby_utils-0.121.0 lib/eac_ruby_utils/envs/ssh_env/quiet.rb
eac_ruby_utils-0.120.0 lib/eac_ruby_utils/envs/ssh_env/quiet.rb
eac_tools-0.76.1 sub/eac_ruby_utils/lib/eac_ruby_utils/envs/ssh_env/quiet.rb
eac_tools-0.76.0 sub/eac_ruby_utils/lib/eac_ruby_utils/envs/ssh_env/quiet.rb
eac_tools-0.75.2 sub/eac_ruby_utils/lib/eac_ruby_utils/envs/ssh_env/quiet.rb
eac_ruby_utils-0.119.2 lib/eac_ruby_utils/envs/ssh_env/quiet.rb
eac_tools-0.75.1 sub/eac_ruby_utils/lib/eac_ruby_utils/envs/ssh_env/quiet.rb
eac_tools-0.75.0 sub/eac_ruby_utils/lib/eac_ruby_utils/envs/ssh_env/quiet.rb
eac_ruby_utils-0.119.1 lib/eac_ruby_utils/envs/ssh_env/quiet.rb
eac_tools-0.74.1 sub/eac_ruby_utils/lib/eac_ruby_utils/envs/ssh_env/quiet.rb
eac_tools-0.74.0 sub/eac_ruby_utils/lib/eac_ruby_utils/envs/ssh_env/quiet.rb
eac_tools-0.73.0 sub/eac_ruby_utils/lib/eac_ruby_utils/envs/ssh_env/quiet.rb
eac_ruby_utils-0.119.0 lib/eac_ruby_utils/envs/ssh_env/quiet.rb
eac_tools-0.72.0 sub/eac_ruby_utils/lib/eac_ruby_utils/envs/ssh_env/quiet.rb
eac_ruby_utils-0.118.1 lib/eac_ruby_utils/envs/ssh_env/quiet.rb
eac_ruby_utils-0.118.0 lib/eac_ruby_utils/envs/ssh_env/quiet.rb
eac_tools-0.70.1 sub/eac_ruby_utils/lib/eac_ruby_utils/envs/ssh_env/quiet.rb