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



15
16
17
# File 'lib/kumade/packager.rb', line 15

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

Instance Method Details

#runObject



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

def run
  if @packager.installed?
    precompile_assets
    package
  end
end