Class: Bixby::Provision::Manifest
- Inherits:
-
Object
- Object
- Bixby::Provision::Manifest
- Includes:
- Log
- Defined in:
- lib/bixby/provision/manifest.rb,
lib/bixby/provision/manifest/dsl_proxy.rb
Defined Under Namespace
Classes: DSLProxy
Instance Attribute Summary collapse
-
#digest ⇒ Object
readonly
Returns the value of attribute digest.
-
#filename ⇒ Object
readonly
Returns the value of attribute filename.
Instance Method Summary collapse
-
#initialize(filename) ⇒ Manifest
constructor
A new instance of Manifest.
- #load_manifest(filename) ⇒ Object
Constructor Details
#initialize(filename) ⇒ Manifest
Returns a new instance of Manifest.
13 14 15 16 17 18 |
# File 'lib/bixby/provision/manifest.rb', line 13 def initialize(filename) test_sudo_access() @filename = filename @digest = Digest::SHA2.new(256).file(filename).hexdigest() load_manifest(filename) end |
Instance Attribute Details
#digest ⇒ Object (readonly)
Returns the value of attribute digest.
11 12 13 |
# File 'lib/bixby/provision/manifest.rb', line 11 def digest @digest end |
#filename ⇒ Object (readonly)
Returns the value of attribute filename.
11 12 13 |
# File 'lib/bixby/provision/manifest.rb', line 11 def filename @filename end |