# File lib/chef/knife/cookbook_site_show.rb, line 31
      def get_cookbook_data
        case @name_args.length
        when 1 
          noauth_rest.get_rest("http://cookbooks.opscode.com/api/v1/cookbooks/#{@name_args[0]}")
        when 2
          noauth_rest.get_rest("http://cookbooks.opscode.com/api/v1/cookbooks/#{@name_args[0]}/versions/#{name_args[1].gsub('.', '_')}")
        end
      end