Sha256: f82aade2aaabc262573520a92abc9dabac918543ad5a65ac2fd1b78dd7c8f5d7

Contents?: true

Size: 1.59 KB

Versions: 8

Compression:

Stored size: 1.59 KB

Contents

################################################################################
#
#      Author: Stephen Nelson-Smith <stephen@atalanta-systems.com>
#      Author: Zachary Patten <zachary@jovelabs.com>
#   Copyright: Copyright (c) 2011-2013 Atalanta Systems Ltd
#     License: Apache License, Version 2.0
#
#   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.
#
################################################################################

module Cucumber::Chef::Helpers::ChefServer

################################################################################

  def chef_server_node_destroy(name)
    (::Chef::Node.load(name).destroy rescue nil)
    logger.info { "Destroyed chef node '#{name}'." }
  end

################################################################################

  def chef_server_client_destroy(name)
    (::Chef::ApiClient.load(name).destroy rescue nil)
    logger.info { "Destroyed chef client '#{name}'." }
  end

################################################################################

end

################################################################################

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
cucumber-chef-2.1.0.rc.11 lib/cucumber/chef/helpers/chef_server.rb
cucumber-chef-2.1.0.rc.10 lib/cucumber/chef/helpers/chef_server.rb
cucumber-chef-2.1.0.rc.9 lib/cucumber/chef/helpers/chef_server.rb
cucumber-chef-2.1.0.rc.8 lib/cucumber/chef/helpers/chef_server.rb
cucumber-chef-2.1.0.rc.7 lib/cucumber/chef/helpers/chef_server.rb
cucumber-chef-2.1.0.rc.6 lib/cucumber/chef/helpers/chef_server.rb
cucumber-chef-2.1.0.rc.5 lib/cucumber/chef/helpers/chef_server.rb
cucumber-chef-2.1.0.rc.4 lib/cucumber/chef/helpers/chef_server.rb