Resource and providers

I put attributes/default.rb in gitignore temporarily until i figure out how
to use encrypted databags. attributes has the credentials that i'm using to
test the cookbook. I will change it by monday.

Exceptional handling and logs have to be put on all the resources. this
will also be done in the weekend.


On Fri, Jul 11, 2014 at 1:38 PM, Chirag Jog <notifications@github.com>
wrote:

> In libraries/netapp_api.rb:
>
> > +        @server ||= NaServer.new(@url.host, 1, 13)
> > +        @server.set_admin_user(@url.user, @url.password)
> > +        @server.set_transport_type(@
> url.scheme.upcase)
> > +        @server.set_port(@url.port)
> > +
> > +        if match = %r{/([^/]+)}.match(@url.path)
> > +          @vfiler = match.captures[0]
> > +          @server.set_vfiler(@vfiler)
> > +        end
> > +
> > +        raise ArgumentError, "Invalid scheme #{@url.scheme}. Must be https" unless @url.scheme == 'https' || @url.scheme == 'http'
> > +        raise ArgumentError, "no user specified" unless @url.user
> > +        raise ArgumentError, "no password specified" unless @url.password
> > +      else
> > +        @server ||= NaServer.new(node[:netapp][:fqdn], 1, 13)
> > +        @server.set_admin_user(node[:netapp][user], node[:netapp][:password])
>
> Add validations to check if these attributes have been set.
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/ClogenyTechnologies/netapp/pull/2/files#r14810471>.
>