Sha256: bdbb5480050440ed8c3944def5d2ff7619e193666739e54f33d6aa51b3d7d0fa
Contents?: true
Size: 1.05 KB
Versions: 16
Compression:
Stored size: 1.05 KB
Contents
#!/usr/bin/env ruby require 'optparse' require 'methadone' require_relative '../motion-prime/version' class App include Methadone::Main include Methadone::CLILogging include Methadone::SH main do |command, opt| case command.to_sym when :new then create(opt) else help end 0 end def self.help info "Command line tools for MotionPrime" info "Commands:" info " new <appname>" info " Creates a new MotionPrime app from a template." end def self.create(name) return puts "Usage: prime new <appname>" unless name.to_s.length > 0 info "Creating new MotionPrime iOS app: #{name}" sh "motion create --template=git@github.com:droidlabs/motion-prime.git #{name}" info "Command: bundle instal" sh "cd ./#{name} & bundle install" info "Command: pod setup" sh "cd ./#{name} & pod setup" info "Command: rake pod:install" sh "cd ./#{name} & rake pod:install" end description "Command line tools for MotionPrime" arg :command arg :opt, :optional version MotionPrime::VERSION go! end
Version data entries
16 entries across 16 versions & 1 rubygems