Sha256: 2731e2bd4b9b9aad19174354e7a2ca37133d1ed65baaf2446e4321d905c610fd

Contents?: true

Size: 975 Bytes

Versions: 14

Compression:

Stored size: 975 Bytes

Contents

#!/usr/bin/env ruby

rails_installed=`gem query --name-matches '^rails$' --installed`

if rails_installed.chomp == 'true'
  require 'pathname'

  source_path = (Pathname.new(__FILE__).dirname + '../lib').expand_path
  $LOAD_PATH << source_path

  require 'voyage'

  if ARGV.empty?
    puts "Please provide a path for the new application"
    puts
    puts "See --help for more info"
    exit 0
  elsif ['-v', '--version'].include? ARGV[0]
    puts Voyage::VERSION
    exit 0
  end

  templates_root = File.expand_path(File.join("..", "templates"), File.dirname(__FILE__))
  template_additions = File.expand_path(File.join("..", "lib/voyage/templates"), File.dirname(__FILE__))
  Suspenders::AppGenerator.source_root templates_root
  Suspenders::AppGenerator.source_paths << Rails::Generators::AppGenerator.source_root << template_additions << templates_root

  Suspenders::AppGenerator.start
else
  puts "Please install Rails in the desired gemset before continuing..."
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
voyage-1.44.0.14 bin/voyage
voyage-1.44.0.13 bin/voyage
voyage-1.44.0.11 bin/voyage
voyage-1.44.0.12 bin/voyage
voyage-1.44.0.10 bin/voyage
voyage-1.44.0.9 bin/voyage
voyage-1.44.0.8 bin/voyage
voyage-1.44.0.7 bin/voyage
voyage-1.44.0.6 bin/voyage
voyage-1.44.0.5 bin/voyage
voyage-1.44.0.4 bin/voyage
voyage-1.44.0.3 bin/voyage
voyage-1.44.0.2 bin/voyage
voyage-1.44.0.1 bin/voyage