lib/knife-spork/plugins/plugin.rb in knife-spork-1.5.1 vs lib/knife-spork/plugins/plugin.rb in knife-spork-1.6.0
- old
+ new
@@ -69,9 +69,17 @@
def cookbook_path
@options[:cookbook_path]
end
+ def role_path
+ File.expand_path(config.role_path.nil? ? "#{cookbook_path}/../roles" : config[:role_path])
+ end
+
+ def node_path
+ File.expand_path(config.role_path.nil? ? "#{cookbook_path}/../nodes" : config[:role_path])
+ end
+
def object_name
@options[:object_name]
end
def object_secondary_name