Sha256: 32b13800cbb4b118e796969bd90297940ed949a8a72ea3e1bc6dc17ffdce85be
Contents?: true
Size: 764 Bytes
Versions: 12
Compression:
Stored size: 764 Bytes
Contents
#!/usr/bin/env ruby version = File.read(File.dirname(__FILE__)+'/../VERSION').strip unless ARGV == ['init'] puts "GitDoc version #{version}" puts "Run with 'init' to make the current directory a GitDoc instance" exit end if File.exists? 'config.ru' abort "config.ru exists, is GitDoc already set up for this folder?" end config = <<-END require 'gitdoc' GitDoc! END rakefile = <<-END require 'bundler/setup' unless $LOAD_PATH.last =~ /gitdoc$/ require 'gitdoc/tasks' END gemfile = <<-END source :rubygems gem 'gitdoc', '#{version}' END index = <<-END Welcome to GitDoc END File.open('config.ru','w') { |f| f.write config } File.open('Rakefile','w') { |f| f.write rakefile } File.open('Gemfile','w') { |f| f.write gemfile } system 'bundle install'
Version data entries
12 entries across 12 versions & 1 rubygems