Class: Kumade::Packager
- Inherits:
-
Object
- Object
- Kumade::Packager
- Defined in:
- lib/kumade/packager.rb
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(git, packager = Packager.available_packager) ⇒ Packager
constructor
A new instance of Packager.
- #run ⇒ Object
Constructor Details
#initialize(git, packager = Packager.available_packager) ⇒ Packager
Returns a new instance of Packager.
3 4 5 6 |
# File 'lib/kumade/packager.rb', line 3 def initialize(git, packager = Packager.available_packager) @packager = packager @git = git end |
Class Method Details
.available_packager ⇒ Object
15 16 17 |
# File 'lib/kumade/packager.rb', line 15 def self.available_packager Kumade::PackagerList.new.first end |
Instance Method Details
#run ⇒ Object
8 9 10 11 12 13 |
# File 'lib/kumade/packager.rb', line 8 def run if @packager.installed? precompile_assets package end end |