diff options
Diffstat (limited to 'lib/puppet/network/controller.rb')
-rw-r--r-- | lib/puppet/network/controller.rb | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/lib/puppet/network/controller.rb b/lib/puppet/network/controller.rb deleted file mode 100644 index 7e4cca643..000000000 --- a/lib/puppet/network/controller.rb +++ /dev/null @@ -1,30 +0,0 @@ -class Puppet::Network::Controller - def initialize(args = {}) - raise ArgumentError, ":indirection is required" unless args[:indirection] - @indirection = args[:indirection] - @klass = model_class_from_indirection_name(@indirection) - end - - def find(args = {}) - @klass.find(args) - end - - def destroy(args = {}) - @klass.destroy(args) - end - - def search(args = {}) - @klass.search(args) - end - - def save(args = {}) - instance = @klass.new(args) - instance.save - end - - private - - def model_class_from_indirection_name - Class.new # TODO : FIXME make this the indirection class - end -end |