Sha256: cfc4eea1ce308f290eb2c40d2b56034a4d02a7b85db27874d760191944ed46da
Contents?: true
Size: 758 Bytes
Versions: 3
Compression:
Stored size: 758 Bytes
Contents
#!/usr/bin/env ruby version = File.read(File.dirname(__FILE__)+'/../VERSION') 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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
gitdoc-3.4.0 | bin/gitdoc |
gitdoc-3.3.0 | bin/gitdoc |
gitdoc-3.2.0 | bin/gitdoc |