Sha256: 2872c81c7e8f4dcdc110f3ab26c63a9d8561e17f8de404a9ac219d558e071476

Contents?: true

Size: 441 Bytes

Versions: 53

Compression:

Stored size: 441 Bytes

Contents

require "chef-cli/command/base"

module ChefCLI
  module Command
    class TestCommand < ChefCLI::Command::Base

      def self.reset!
        @test_result = nil
      end

      def self.test_result
        @test_result
      end

      def self.test_result=(result)
        @test_result = result
      end

      def run(params)
        self.class.test_result = { status: :success, params: params }
        23
      end

    end
  end
end

Version data entries

53 entries across 53 versions & 1 rubygems

Version Path
chef-cli-5.6.16 spec/unit/fixtures/command/cli_test_command.rb
chef-cli-5.6.14 spec/unit/fixtures/command/cli_test_command.rb
chef-cli-5.6.13 spec/unit/fixtures/command/cli_test_command.rb
chef-cli-5.6.12 spec/unit/fixtures/command/cli_test_command.rb
chef-cli-5.6.11 spec/unit/fixtures/command/cli_test_command.rb
chef-cli-5.6.8 spec/unit/fixtures/command/cli_test_command.rb
chef-cli-5.6.1 spec/unit/fixtures/command/cli_test_command.rb
chef-cli-5.6.0 spec/unit/fixtures/command/cli_test_command.rb
chef-cli-5.5.6 spec/unit/fixtures/command/cli_test_command.rb
chef-cli-5.5.5 spec/unit/fixtures/command/cli_test_command.rb
chef-cli-5.5.4 spec/unit/fixtures/command/cli_test_command.rb
chef-cli-5.5.0 spec/unit/fixtures/command/cli_test_command.rb
chef-cli-5.4.2 spec/unit/fixtures/command/cli_test_command.rb
chef-cli-5.4.1 spec/unit/fixtures/command/cli_test_command.rb
chef-cli-5.3.1 spec/unit/fixtures/command/cli_test_command.rb
chef-cli-5.3.0 spec/unit/fixtures/command/cli_test_command.rb
chef-cli-5.2.0 spec/unit/fixtures/command/cli_test_command.rb
chef-cli-5.1.0 spec/unit/fixtures/command/cli_test_command.rb
chef-cli-5.0.1 spec/unit/fixtures/command/cli_test_command.rb
chef-cli-4.0.1 spec/unit/fixtures/command/cli_test_command.rb