Class: Chef::Provider::Development

Inherits:
Chef::Provider show all
Includes:
DSL::IncludeRecipe, Garcon
Defined in:
lib/garcon/chef/provider/development.rb

Constant Summary

Constants included from Garcon

Garcon::VERSION

Instance Method Summary collapse

Methods included from Garcon

auto_terminate_all_executors?, auto_terminate_global_executors?, coercer, coercer=, config, configuration, crypto, crypto=, disable_auto_termination_of_all_executors!, disable_auto_termination_of_global_executors!, global_fast_executor, global_io_executor, global_timer_set, included, #inspect, kill_global_executors, monotonic_time, new_fast_executor, new_io_executor, physical_processor_count, processor_count, secret, secret=, shutdown_global_executors, #terminal_dimensions, timer, #to_s, wait_for_global_executors_termination, warn

Instance Method Details

#action_runObject



69
70
71
72
73
74
75
76
# File 'lib/garcon/chef/provider/development.rb', line 69

def action_run
  platform_recipes
  chef_handler
  install_gem('pry')
  Chef::Recipe.send(:require, 'pry')
  install_gem('awesome_print')
  Chef::Recipe.send(:require, 'ap')
end

#load_current_resourceChef::Provider:Development

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Load and return the current resource.

Returns:

  • (Chef::Provider:Development)


64
65
66
67
# File 'lib/garcon/chef/provider/development.rb', line 64

def load_current_resource
  @current_resource ||= Chef::Resource::Development.new(r.name)
  @current_resource
end

#whyrun_supported?TrueClass, FalseClass

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Boolean indicating if WhyRun is supported by this provider

Returns:



55
56
57
# File 'lib/garcon/chef/provider/development.rb', line 55

def whyrun_supported?
  true
end