Sha256: afdf418d7ddb6167c0fbdf166e68e2be5699ddad0aa2dd5cba71504bc4632da5
Contents?: true
Size: 650 Bytes
Versions: 5
Compression:
Stored size: 650 Bytes
Contents
module Susanoo::CLI module Commands # Provide the `run` command for project wide usage. module Run extend ::ActiveSupport::Concern included do map 'r' => :run_in desc 'run PLATFORM', 'Run application on PLATFORM.' method_option :release, default: false def run_in(platform = :android) # Build the project first build inside Susanoo::Project.path do debug_flag = '--debug' debug_flag = '--release' if options[:release] system "cordova run #{platform.to_s} #{debug_flag}" end end end end end end
Version data entries
5 entries across 5 versions & 1 rubygems