Module: Jets::Builders::Util
- Included in:
- CodeBuilder, Md5Zip, RubyPackager
- Defined in:
- lib/jets/builders/util.rb
Instance Method Summary collapse
-
#full(relative_path) ⇒ Object
Provide pretty clear way to desinate full path.
- #headline(message) ⇒ Object
- #poly_only? ⇒ Boolean
- #sh(command) ⇒ Object
Instance Method Details
#full(relative_path) ⇒ Object
Provide pretty clear way to desinate full path. full(“bundled”) => /tmp/jets/demo/bundled
16 17 18 |
# File 'lib/jets/builders/util.rb', line 16 def full(relative_path) "#{Jets.build_root}/#{relative_path}" end |
#headline(message) ⇒ Object
10 11 12 |
# File 'lib/jets/builders/util.rb', line 10 def headline() puts "=> #{}".colorize(:cyan) end |
#poly_only? ⇒ Boolean
20 21 22 |
# File 'lib/jets/builders/util.rb', line 20 def poly_only? Jets.poly_only? end |
#sh(command) ⇒ Object
3 4 5 6 7 8 |
# File 'lib/jets/builders/util.rb', line 3 def sh(command) puts "=> #{command}".colorize(:green) success = system(command) abort("#{command} failed to run") unless success success end |