Skip to content

Instantly share code, notes, and snippets.

@bash0C7
Created Jan 9, 2012
Embed
What would you like to do?
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