Permalink
Browse files

initial lib files [touch:1]

  • Loading branch information...
1 parent 58b116f commit dbca4a68864bb854b748281c702ab2d1ea48b205 @lfcipriani lfcipriani committed Dec 17, 2010
Showing with 39 additions and 0 deletions.
  1. +19 −0 lib/tokamak.rb
  2. 0 lib/tokamak/.gitkeep
  3. +13 −0 lib/tokamak/version.rb
  4. +7 −0 script/console
View
@@ -0,0 +1,19 @@
+$:.unshift(File.dirname(__FILE__)) unless $:.include?(File.dirname(__FILE__))
+
+# Dependencies
+require "rubygems"
+require "bundler/setup"
+# require other dependencies here...
+
+# Gem requirements
+# Your can require or autoload gem files here, see examples below
+# require "gem_name/file"
+# module GemName
+ # autoload :AClass , "migrator/a_class"
+ # autoload :AnotherClass, "migrator/another_class"
+# end
+
+module Tokamak
+
+end
+
No changes.
@@ -0,0 +1,13 @@
+module Tokamak
+ module VERSION #:nodoc:
+ MAJOR = 0
+ MINOR = 0
+ TINY = 1
+
+ STRING = [MAJOR, MINOR, TINY].join('.')
+
+ def self.to_s
+ STRING
+ end
+ end
+end
View
@@ -0,0 +1,7 @@
+#!/usr/bin/env ruby
+# File: script/console
+irb = RUBY_PLATFORM =~ /(:?mswin|mingw)/ ? 'irb.bat' : 'irb'
+ENV["MIGRATOR_CALLER"] = "console"
+libs = " -r #{File.dirname(__FILE__) + '/../lib/tokamak.rb'} -r ruby-debug"
+puts "Loading tokamak development environment..."
+exec "#{irb} #{libs} --simple-prompt #{ARGV.join("")}"

0 comments on commit dbca4a6

Please sign in to comment.