Sha256: 954ec88418476c947f6c45c51b889967dade60eb4dc53e6d1f2d3025e83ea958

Contents?: true

Size: 438 Bytes

Versions: 18

Compression:

Stored size: 438 Bytes

Contents

require "chef-dk/command/base"

module ChefDK
  module Command
    class TestCommand < ChefDK::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

18 entries across 18 versions & 1 rubygems

Version Path
chef-dk-4.13.3 spec/unit/fixtures/command/cli_test_command.rb
chef-dk-4.12.0 spec/unit/fixtures/command/cli_test_command.rb
chef-dk-4.11.0 spec/unit/fixtures/command/cli_test_command.rb
chef-dk-4.10.0 spec/unit/fixtures/command/cli_test_command.rb
chef-dk-4.9.7 spec/unit/fixtures/command/cli_test_command.rb
chef-dk-4.7.73 spec/unit/fixtures/command/cli_test_command.rb
chef-dk-3.13.1 spec/unit/fixtures/command/cli_test_command.rb
chef-dk-4.6.35 spec/unit/fixtures/command/cli_test_command.rb
chef-dk-3.12.10 spec/unit/fixtures/command/cli_test_command.rb
chef-dk-3.12.0 spec/unit/fixtures/command/cli_test_command.rb
chef-dk-4.5.0 spec/unit/fixtures/command/cli_test_command.rb
chef-dk-4.4.27 spec/unit/fixtures/command/cli_test_command.rb
chef-dk-4.3.13 spec/unit/fixtures/command/cli_test_command.rb
chef-dk-4.2.0 spec/unit/fixtures/command/cli_test_command.rb
chef-dk-4.1.7 spec/unit/fixtures/command/cli_test_command.rb
chef-dk-3.11.3 spec/unit/fixtures/command/cli_test_command.rb
chef-dk-3.10.1 spec/unit/fixtures/command/cli_test_command.rb
chef-dk-4.0.60 spec/unit/fixtures/command/cli_test_command.rb