Class: Chef::Provider::VagrantBox
- Inherits:
-
LWRPBase
- Object
- LWRPBase
- Chef::Provider::VagrantBox
- Includes:
- Mixin::ShellOut
- Defined in:
- lib/chef/provider/vagrant_box.rb
Instance Method Summary collapse
Instance Method Details
#list_boxes ⇒ Object
34 35 36 37 38 39 40 |
# File 'lib/chef/provider/vagrant_box.rb', line 34 def list_boxes @list_boxes ||= shell_out("vagrant box list").stdout.lines.inject({}) do |result, line| line =~ /^(\S+)\s+\((.+)\)\s*$/ result[$1] = $2 result end end |
#load_current_resource ⇒ Object
42 43 |
# File 'lib/chef/provider/vagrant_box.rb', line 42 def load_current_resource end |
#whyrun_supported? ⇒ Boolean
10 11 12 |
# File 'lib/chef/provider/vagrant_box.rb', line 10 def whyrun_supported? true end |