Skip to content
Browse files

First commit

  • Loading branch information...
0 parents commit a2ad230b515943acd5aa366513f9f413e70ea30e @Nerian committed Jul 19, 2011
Showing with 37 additions and 0 deletions.
  1. +1 −0 .gitignore
  2. +25 −0 readme.markdown
  3. +11 −0 simple_gemset.thor
1 .gitignore
@@ -0,0 +1 @@
+.rvmrc
25 readme.markdown
@@ -0,0 +1,25 @@
+### Simple Gemset: A generator for minimal a .rvmrc file
+
+I am a Ruby developer. As such, I am constantly creating new Ruby projects.
+
+Simple Gemset is a thor script that generates a .rvmrc file without ANY configuration. Fire and forget.
+
+This is the .rvmrc that is generated:
+
+ rvm gemset create '#{rvm-gemset}' # defaults to the name of the current folder
+ rvm gemset use '#{rvm-gemset}'
+
+## Installing:
+
+ $ thor install https://github.com/Nerian/Simple_gemset/simple_gemset.thor
+
+## Using it:
+
+ $ mkdir my_new_project
+ $ cd my_new_project
+
+ $ thor rvmrc:new
+ create .rvmrc
+
+ $ thor rvmrc:new some_other_name_for_the_new_gemset
+ create .rvmrc
11 simple_gemset.thor
@@ -0,0 +1,11 @@
+class Rvmrc < Thor
+ include Thor::Actions
+
+ desc "new [gemset_name]", "Create a new .rvmrc file configured with a new Gemset"
+ def new(gemset_name = File.basename(Dir.getwd))
+ create_file('.rvmrc') do
+ "rvm gemset create '#{gemset_name}'\n" +
+ "rvm gemset use '#{gemset_name}'"
+ end
+ end
+end

0 comments on commit a2ad230

Please sign in to comment.
Something went wrong with that request. Please try again.