Class: Embork::Extension
- Inherits:
-
Object
- Object
- Embork::Extension
- Defined in:
- lib/embork/extension.rb
Instance Method Summary collapse
- #helpers ⇒ Object
-
#initialize(borkfile_path, bundled_assets = false, environment = nil) ⇒ Extension
constructor
A new instance of Extension.
Constructor Details
#initialize(borkfile_path, bundled_assets = false, environment = nil) ⇒ Extension
Returns a new instance of Extension.
5 6 7 8 9 10 11 12 13 14 |
# File 'lib/embork/extension.rb', line 5 def initialize(borkfile_path, bundled_assets = false, environment = nil) @borkfile = Embork::Borkfile.new [:borkfile], environment @environment = environment || Embork.env || ENV['RACK_ENV'] if bundled_assets version_file_path = File.join(@borkfile.project_root, 'build', @environment.to_s, 'current-version') @bundle_version = File.read(version_file_path) @use_bundled_assets = true end end |