Sha256: cd91d16ad2401f32f77fbf10c512f0722165bba2ea2a4cc868152a8dce3df0c3

Contents?: true

Size: 1.58 KB

Versions: 1

Compression:

Stored size: 1.58 KB

Contents

#!/usr/bin/env ruby

# skynet_install is used to install skynet binaries into your application.
# The value of using your own skynet binaries is that they can ensure your code
# is available to all skynet workers.
# This is also how you can run skynet from within rails. (using --rails)
#
# USAGE: skynet_install [--rails] directory (can be '.' for current)"
# 
#   Options:
#       -v, --version                    Show the skynet_install version number and quit.
#           --include-migration          Include mysql migration if you want to use mysql as your message queue
#       -r, --rails                      Install into rails app
#                                        Default: false
#   General Options:
#       -h, --help                       Show this help message and quit.
#       -p, --pretend                    Run but do not make any changes.
#       -f, --force                      Overwrite files that already exist.
#       -s, --skip                       Skip files that already exist.
#       -q, --quiet                      Suppress normal output.
#       -t, --backtrace                  Debugging: show backtrace on errors.
#       -c, --svn                        Modify files with subversion. (Note: svn must be in path)
# 

require 'rubygems'
require 'rubigen'

if %w(-v --version).include? ARGV.first
  require 'skynet_install/version'
  puts "#{File.basename($0)} #{SkynetInstall::VERSION::STRING}"
  exit(0)
end

require 'rubigen/scripts/generate'
RubiGen::Base.use_application_sources! :skynet_install
RubiGen::Scripts::Generate.new.run(ARGV, :generator => 'skynet_install')

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
skynet-0.9.2 bin/skynet_install