Skip to content

Instantly share code, notes, and snippets.

@bash0C7
Created January 9, 2012 13:43
Show Gist options
  • Save bash0C7/1582990 to your computer and use it in GitHub Desktop.
Save bash0C7/1582990 to your computer and use it in GitHub Desktop.
Redmine Client Ruby REPL
# -*- coding: utf-8 -*-
abort if ARGV.empty?
initializer = ARGV.shift
eval(File.read(initializer), binding)
prompt_prefix = File.basename(initializer)
require 'rubygems'
require 'pry'
pry(prompt_prefix)
# -*- coding: utf-8 -*-
$KCODE = 'U'
require 'rubygems'
require 'redmine_client'
require 'yaml'
config = YAML.load(ARGF.read)
RedmineClient::Base.configure do
self.site = config['site']
self.user = config['user']
self.password = config['password']
end
include RedmineClient
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment