Sha256: 204e364d50b945e1cc68e537926040bb5648a649e51dfc48068323db4a280ecb
Contents?: true
Size: 881 Bytes
Versions: 6
Compression:
Stored size: 881 Bytes
Contents
module Spontaneous module Cli class Assets < ::Thor include Spontaneous::Cli::TaskUtils namespace :assets default_task :compile desc "compile", "Compiles assets for the Spontaneous UI" method_option :destination, :type => :string, :aliases => "-d", :required => true, :desc => "Compile assets into DESTINATION" def compile(*args) compile_assets end protected def compile_assets prepare(:compile) # options[:mode] = :console # Find path to install of Spontaneous using bundler and then # use this path as params to compiler spec = Bundler.load.specs.find{|s| s.name == "spontaneous" } p spec.full_gem_path compiler = ::Spontaneous::Asset::AppCompiler.new(spec.full_gem_path, options.destination) compiler.compile end end end end
Version data entries
6 entries across 6 versions & 1 rubygems