Sha256: 81b30ccfbe26bdf40e98eebff2c132fa647ec3e8ab1c8cad94e96b05941bf220

Contents?: true

Size: 770 Bytes

Versions: 15

Compression:

Stored size: 770 Bytes

Contents

module AnswersEngine
  class CLI < Thor
    class ScraperDeployment < Thor

      package_name "scraper deployment"
      def self.banner(command, namespace = nil, subcommand = false)
        "#{basename} #{@package_name} #{command.usage}"
      end

      
      desc "list <scraper_name>", "List deployments on a scraper"
      long_desc <<-LONGDESC
        List deployments on a scraper.
      LONGDESC
      option :page, :aliases => :p, type: :numeric, desc: 'Get the next set of records by page.'
      option :per_page, :aliases => :P, type: :numeric, desc: 'Number of records per page. Max 500 per page.'
      def list(scraper_name)
        client = Client::ScraperDeployment.new(options)
        puts "#{client.all(scraper_name)}"
      end
    end
  end

end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
answersengine-0.10.1 lib/answersengine/cli/scraper_deployment.rb
answersengine-0.10.0 lib/answersengine/cli/scraper_deployment.rb
answersengine-0.9.1 lib/answersengine/cli/scraper_deployment.rb
answersengine-0.9.0 lib/answersengine/cli/scraper_deployment.rb
answersengine-0.8.0 lib/answersengine/cli/scraper_deployment.rb
answersengine-0.7.0 lib/answersengine/cli/scraper_deployment.rb
answersengine-0.6.0 lib/answersengine/cli/scraper_deployment.rb
answersengine-0.5.0 lib/answersengine/cli/scraper_deployment.rb
answersengine-0.4.1 lib/answersengine/cli/scraper_deployment.rb
answersengine-0.4.0 lib/answersengine/cli/scraper_deployment.rb
answersengine-0.3.3 lib/answersengine/cli/scraper_deployment.rb
answersengine-0.3.2 lib/answersengine/cli/scraper_deployment.rb
answersengine-0.3.1 lib/answersengine/cli/scraper_deployment.rb
answersengine-0.3.0 lib/answersengine/cli/scraper_deployment.rb
answersengine-0.2.33 lib/answersengine/cli/scraper_deployment.rb