Sha256: 58600775d2015f37175a102409ede944b58505119191e71c99071e503d166a56
Contents?: true
Size: 742 Bytes
Versions: 2
Compression:
Stored size: 742 Bytes
Contents
class Mangos::Package attr_reader :path, :options def initialize(path, options) raise "path must be an instance of Pathname" unless path.is_a?(Pathname) @path = DecoratedPathname.new(path) @options = options end def update app_path.mkdir unless File.exists?(app_path) thumbnails_path.mkpath unless File.exists?(thumbnails_path) Mangos::Update.new(self, Mangos::Processor.new(self)).update end def app_path @path + ".mangos/" end def data_path app_path + "data.json" end def key_mapping_path app_path + "key_mapping.json" end def thumbnails_path app_path + "img/thumbnails/" end def force? @options[:force] end def migrate? @options[:migrate] end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
mangos-0.4 | lib/mangos/package.rb |
mangos-0.3 | lib/mangos/package.rb |