Sha256: bff6cacf4841eed9c8829e8662c7df2acb2448b5e5a1f766fda80501479e1ef9

Contents?: true

Size: 723 Bytes

Versions: 50

Compression:

Stored size: 723 Bytes

Contents

#!/usr/bin/env ruby
require 'bundler'

ARGV[0] ||= "console"

if %w(s server).include?(ARGV[0])
  Bundler.setup(:default, :server)

  require 'zendesk_api'
  require 'zendesk_api/server/base'

  OptionParser.new do |op|
    op.banner = "Usage: zendesk s[erver] [options]"

    op.on('-e env', 'Set the environment') {|val| ZendeskAPI::Server::App.set(:environment, val.to_sym)}
    op.on('-p port', 'Bind to a port') {|val| ZendeskAPI::Server::App.set(:port, val.to_i)}
    op.on('-o addr', 'Bind to a location') {|val| ZendeskAPI::Server::App.set(:bind, val)}
  end.parse!(ARGV.dup)

  ZendeskAPI::Server::App.run!
else
  Bundler.setup(:default, :console)

  require 'zendesk_api'
  require 'zendesk_api/console/base'
end

Version data entries

50 entries across 50 versions & 1 rubygems

Version Path
zendesk_api-1.2.10 bin/zendesk
zendesk_api-1.2.9 bin/zendesk
zendesk_api-0.3.14 bin/zendesk
zendesk_api-1.2.8 bin/zendesk
zendesk_api-1.2.7 bin/zendesk
zendesk_api-1.3.1 bin/zendesk
zendesk_api-1.3.0 bin/zendesk
zendesk_api-1.3.0.rc3 bin/zendesk
zendesk_api-1.2.6 bin/zendesk
zendesk_api-1.3.0.rc2 bin/zendesk
zendesk_api-1.3.0.rc1 bin/zendesk
zendesk_api-1.2.5 bin/zendesk
zendesk_api-1.2.4 bin/zendesk
zendesk_api-1.2.3 bin/zendesk
zendesk_api-1.2.2 bin/zendesk
zendesk_api-1.2.1 bin/zendesk
zendesk_api-1.1.3 bin/zendesk
zendesk_api-1.1.2 bin/zendesk
zendesk_api-1.1.1 bin/zendesk
zendesk_api-1.1.0 bin/zendesk