Class: Kumade::Packager

Inherits:
Object
  • Object
show all
Defined in:
lib/kumade/packager.rb

Class Method Summary collapse

Instance Method Summary collapse

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_packagerObject


13
14
15
# File 'lib/kumade/packager.rb', line 13

def self.available_packager
  Kumade::PackagerList.new.first
end

Instance Method Details

#runObject


8
9
10
11
# File 'lib/kumade/packager.rb', line 8

def run
  precompile_assets
  package
end