Skip to content

Instantly share code, notes, and snippets.

@Oshuma
Created March 12, 2009 02:29
Show Gist options
  • Select an option

  • Save Oshuma/77873 to your computer and use it in GitHub Desktop.

Select an option

Save Oshuma/77873 to your computer and use it in GitHub Desktop.
ruby_proj.rb
class RubyProj
def self.create(name)
%x| mkdir #{name} |
%x| touch #{name}/Rakefile |
%x| mkdir -p #{name}/lib |
%x| touch #{name}/lib/#{name}.rb |
%x| mkdir -p #{name}/spec |
%x| touch #{name}/spec/spec_helper.rb |
%x| touch #{name}/spec/#{name}_spec.rb |
end
end
if __FILE__ == $0
RubyProj.create($*.first)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment