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