Sha256: fdbda1f6bab33866e0a5509efb75a8fbe0eda8a98597593049e1a075ae4c9e3e

Contents?: true

Size: 468 Bytes

Versions: 6

Compression:

Stored size: 468 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

6 entries across 6 versions & 1 rubygems

Version Path
chef-dk-0.15.16 spec/unit/fixtures/command/cli_test_command.rb
chef-dk-0.15.15 spec/unit/fixtures/command/cli_test_command.rb
chef-dk-0.15.9 spec/unit/fixtures/command/cli_test_command.rb
chef-dk-0.13.21 spec/unit/fixtures/command/cli_test_command.rb
chef-dk-0.12.0 spec/unit/fixtures/command/cli_test_command.rb
chef-dk-0.9.0 spec/unit/fixtures/command/cli_test_command.rb