travis-ci
6 of 6 new or added lines in 5 files covered. (100.0%)
500 of 1068 relevant lines covered (46.82%)
1.4 hits per line
1 |
module Hanami |
3 all except jruby-9.0.5.0 and jruby-head ✔ |
2 |
class CliSubCommands |
3 all except jruby-9.0.5.0 and jruby-head ✔ |
3 |
# A set of subcommands related to assets
|
|
4 |
#
|
|
5 |
# It is run with:
|
|
6 |
#
|
|
7 |
# `bundle exec hanami assets`
|
|
8 |
#
|
|
9 |
# @since 0.6.0
|
|
10 |
# @api private
|
|
11 |
class Assets < Thor |
3 all except jruby-9.0.5.0 and jruby-head ✔ |
|
namespace :assets
|
3 all except jruby-9.0.5.0 and jruby-head ✔ |
13 |
|
|
14 |
desc 'precompile', 'Precompile assets for deployment' |
3 all except jruby-9.0.5.0 and jruby-head ✔ |
15 |
def precompile |
3 all except jruby-9.0.5.0 and jruby-head ✔ |
16 |
require 'hanami/commands/assets/precompile'
|
× |
17 |
Hanami::Commands::Assets::Precompile.new(options, environment).start |
× |
18 |
end
|
|
19 |
|
|
20 |
private |
3 all except jruby-9.0.5.0 and jruby-head ✔ |
21 |
|
|
22 |
# @since 0.6.0
|
|
23 |
# @api private
|
|
24 |
def environment |
3 all except jruby-9.0.5.0 and jruby-head ✔ |
25 |
Hanami::Environment.new(options) |
× |
26 |
end
|
|
27 |
end
|
|
28 |
end
|
|
29 |
end
|