Sha256: 19a0c5b2ba9dae388133ef0d6b4b14d83ca79aecff588c0c0fb0ff515b94685e

Contents?: true

Size: 1.06 KB

Versions: 10

Compression:

Stored size: 1.06 KB

Contents

#!/usr/bin/env ruby

# Creates a new SproutCore Project/Library
# You can use this command in one of two ways:
#
# sc-init 
#  - This will create a new project library within the current working dir
#
# sc-init project-name
#  - This will create a new directory and create the project library there.

# Set String encoding to Unicode
$KCODE = 'u'

APP_ROOT = File.expand_path(Dir.pwd)
SC_ROOT = File.expand_path(File.join(File.dirname(__FILE__), '..'))
$:.unshift File.join(SC_ROOT,'lib') ;

require 'rubygems'
require 'rubigen'
require 'sproutcore'

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

# Handle default case...
ARGV.unshift('.') if ARGV.size == 0
 
require 'rubigen/scripts/generate'
source = RubiGen::PathSource.new(:application,
  File.join(File.dirname(__FILE__), "../app_generators"))
RubiGen::Base.reset_sources
RubiGen::Base.append_sources source
RubiGen::Base.use_component_sources! [:sc, :app]
RubiGen::Scripts::Generate.new.run(ARGV, :generator => 'sproutcore')

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
sproutcore-0.9.15 bin/sc-init
sproutcore-0.9.14 bin/sc-init
sproutcore-0.9.17 bin/sc-init
sproutcore-0.9.16 bin/sc-init
sproutcore-0.9.19 bin/sc-init
sproutcore-0.9.18 bin/sc-init
sproutcore-0.9.23 bin/sc-init
sproutcore-0.9.22 bin/sc-init
sproutcore-0.9.21 bin/sc-init
sproutcore-0.9.20 bin/sc-init