Sha256: b027ca32e7d68d245bda249237c9952871b3aed5304e355b7419f85b43bf9c08
Contents?: true
Size: 883 Bytes
Versions: 2
Compression:
Stored size: 883 Bytes
Contents
module Spontaneous module Cli class Assets < ::Spontaneous::Cli::Thor Spontaneous = ::Spontaneous namespace :assets default_task :compile # class Up < SyncTask # desc "Syncs up" # end desc "#{namespace}:compile", "Compiles assets for the Spontaneous UI" method_option :destination, :type => :string, :aliases => "-d", :required => true, :desc => "Compile assets into DESTINATION" def compile 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
spontaneous-0.2.0.alpha4 | lib/spontaneous/cli/assets.rb |
spontaneous-0.2.0.alpha3 | lib/spontaneous/cli/assets.rb |