#
# Copyright 2015, Noah Kantrowitz
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#

require 'poise_boiler/kitchen'

module PoiseBoiler
  def self.include_halite_spec_helper
    @include_halite_spec_helper.nil? ? true : @include_halite_spec_helper
  end

  def self.include_halite_spec_helper=(val)
    @include_halite_spec_helper = val
  end

  # (see PoiseBoiler::Kitchen.kitchen)
  def self.kitchen(platforms: 'ubuntu-14.04')
    # Alias in a top-level namespace to reduce typing.
    Kitchen.kitchen(platforms: platforms)
  end
end

#
# Copyright 2015, Noah Kantrowitz
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#

require 'poise_boiler/kitchen'

module PoiseBoiler
  class << self
    # @!attribute include_halite_spec_helper
    # Enable/disable Halite::SpecHelper when configuring RSpec.
    #
    # @since 1.0.0
    # @return [Boolean] Include/don't include Halite::SpecHelper.
    # @example
    #   require 'poise_boiler'
    #   PoiseBoiler.include_halite_spec_helper = false
    #   require 'poise_boiler/spec_helper'
    def include_halite_spec_helper
      defined?(@include_halite_spec_helper) ? @include_halite_spec_helper : true
    end

    def include_halite_spec_helper=(val)
      @include_halite_spec_helper = val
    end

    # (see PoiseBoiler::Kitchen.kitchen)
    def kitchen(platforms: 'ubuntu-14.04')
      # Alias in a top-level namespace to reduce typing.
      Kitchen.kitchen(platforms: platforms)
    end
  end
end

Move class methods to a class << self because it makes Yard happier and ¯\_(ツ)_/¯.
Move class methods to a class << self because it makes Yard happier and ¯\_(ツ)_/¯.