Sha256: 7e5fa8e10d2cb690c9ddbf279f5fab330e9b8a7f6417640be556e1a2485d9f7b

Contents?: true

Size: 1008 Bytes

Versions: 11

Compression:

Stored size: 1008 Bytes

Contents

# frozen_string_literal: true

require_relative 'base'

module RubyNPM
  module Commands
    class Install < Base
      # @!visibility private
      def subcommands
        %w[install]
      end

      # @!visibility private
      # rubocop:disable Metrics/MethodLength
      def options
        super +
          Options::Sets::WORKSPACE_OPTIONS +
          Options::Sets::LOGGING_OPTIONS +
          Options::Sets::GLOBAL_OPTIONS +
          Options::Sets::DEPENDENCY_OPTIONS +
          Options::Sets::OUTPUT_OPTIONS +
          %w[
            --audit
            --bin-links
            --fund
            --global
            --global-style
            --install-links
            --install-strategy
            --legacy-bundling
            --package-lock
            --package-lock-only
            --strict-peer-deps
            --tag
          ]
      end
      # rubocop:enable Metrics/MethodLength

      def arguments(parameters)
        [parameters[:package_specs]]
      end
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
ruby_npm-0.2.0.pre.2 lib/ruby_npm/commands/install.rb
ruby_npm-0.2.0.pre.1 lib/ruby_npm/commands/install.rb
ruby_npm-0.1.0 lib/ruby_npm/commands/install.rb
ruby_npm-0.1.0.pre.14 lib/ruby_npm/commands/install.rb
ruby_npm-0.1.0.pre.13 lib/ruby_npm/commands/install.rb
ruby_npm-0.1.0.pre.12 lib/ruby_npm/commands/install.rb
ruby_npm-0.1.0.pre.11 lib/ruby_npm/commands/install.rb
ruby_npm-0.1.0.pre.10 lib/ruby_npm/commands/install.rb
ruby_npm-0.1.0.pre.9 lib/ruby_npm/commands/install.rb
ruby_npm-0.1.0.pre.8 lib/ruby_npm/commands/install.rb
ruby_npm-0.1.0.pre.7 lib/ruby_npm/commands/install.rb