summaryrefslogtreecommitdiff
path: root/spec/data/knife_subcommand/test_yourself.rb
blob: f18f565885036b0236f5407ebd784c9d2a030ece (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
module KnifeSpecs
  class TestYourself < Chef::Knife

    class << self
      attr_reader :test_deps_loaded
    end

    deps do
      @test_deps_loaded = true
    end

    option :scro, :short => '-s SCRO', :long => '--scro SCRO', :description => 'a configurable setting'

    attr_reader :ran

    def run
      @ran = true
      self # return self so tests can poke at me
    end
  end
end