This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| module EmZendesk | |
| require 'em-http' | |
| class Base < SimpleModel::Base | |
| has_attributes :zen_resource, :params, :username, :password, :response, :company_url | |
| has_attributes :format, :default => 'json' | |
| has_attributes :http_method, :default => :post | |
| validate :validates_post_response | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| user nobody; | |
| worker_processes 1; | |
| #error_log logs/error.log; | |
| #error_log logs/error.log notice; | |
| #error_log logs/error.log info; | |
| #pid logs/nginx.pid; | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require "bundler/capistrano" | |
| default_run_options[:pty] = true | |
| set :user, 'user' | |
| set :domain, 'SOMEDOMAIN.OR.IP' | |
| set :application, "applcation_name" | |
| set :repository, "/home/#{user}/git/#{application}.git/" | |
| set :local_repository, "." | |
| set :deploy_to, "/home/#{user}/#{application}" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --- | |
| chdir: /home/user/application_name/current | |
| environment: sit | |
| address: 0.0.0.0 | |
| port: 5000 | |
| timeout: 30 | |
| log: log/thin.log | |
| pid: tmp/pids/thin.pid | |
| max_conns: 1024 | |
| max_persistent_conns: 512 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --- | |
| chdir: /home/user/application_name/current | |
| environment: sit | |
| address: 0.0.0.0 | |
| port: 5000 | |
| timeout: 30 | |
| log: log/thin.log | |
| pid: tmp/pids/thin.pid | |
| max_conns: 1024 | |
| max_persistent_conns: 512 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require 'my_engine' | |
| require "rails" | |
| require 'date_tools' | |
| require 'ascyn_http' | |
| require 'payment_calendar' | |
| require 'simple_record_read_only' | |
| require 'ventanex_encryption' | |
| require 'simple_model' | |
| require 'simple_record' | |
| require "typhoeus" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # -*- encoding: utf-8 -*- | |
| $:.push File.expand_path("../lib", __FILE__) | |
| require "my_engine/version" | |
| Gem::Specification.new do |s| | |
| s.name = "msp_webpay" | |
| s.version = MyEngine::VERSION | |
| s.platform = Gem::Platform::RUBY | |
| s.authors = ["Joshua T. Mckinney "] | |
| s.email = ["not a email"] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:wel="http://test.comt/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | |
| <env:Header> | |
| <wsse:Security env:mustUnderstand="1" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"> | |
| <wsu:Timestamp wsu:Id="Timestamp-3" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"> | |
| <wsu:Created>2010-12-16T19:40:03Z</wsu:Created> | |
| <wsu:Expires>2010-12-16T19:41:03Z</wsu:Expires> | |
| </wsu:Timestamp> | |
| </wsse:Security> | |
| </env:Header> | |
| <env:Body> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class MyClass1 | |
| def working | |
| puts "working" | |
| end | |
| def use_worker | |
| working | |
| end | |
| end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def self.all_available_methods | |
| controllers = Dir.new("#{RAILS_ROOT}/app/controllers").entries | |
| controllers.each do |controller| | |
| if controller =~ /_controller/ | |
| available_methods(controller) | |
| end | |
| end | |
| end | |
| def self.available_methods(controller) |