Created
January 9, 2012 13:43
-
-
Save bash0C7/1582990 to your computer and use it in GitHub Desktop.
Redmine Client Ruby REPL
This file contains 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
# -*- 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) |
This file contains 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
# -*- 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