Class: Script::Layers::Domain::PushPackage
- Inherits:
-
Object
- Object
- Script::Layers::Domain::PushPackage
- Defined in:
- lib/project_types/script/layers/domain/push_package.rb
Instance Attribute Summary collapse
-
#compiled_type ⇒ Object
readonly
Returns the value of attribute compiled_type.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#script ⇒ Object
readonly
Returns the value of attribute script.
-
#script_content ⇒ Object
readonly
Returns the value of attribute script_content.
Instance Method Summary collapse
-
#initialize(id, script, script_content, compiled_type) ⇒ PushPackage
constructor
A new instance of PushPackage.
- #push(script_service, api_key, force) ⇒ Object
Constructor Details
#initialize(id, script, script_content, compiled_type) ⇒ PushPackage
Returns a new instance of PushPackage.
9 10 11 12 13 14 |
# File 'lib/project_types/script/layers/domain/push_package.rb', line 9 def initialize(id, script, script_content, compiled_type) @id = id @script = script @script_content = script_content @compiled_type = compiled_type end |
Instance Attribute Details
#compiled_type ⇒ Object (readonly)
Returns the value of attribute compiled_type.
7 8 9 |
# File 'lib/project_types/script/layers/domain/push_package.rb', line 7 def compiled_type @compiled_type end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
7 8 9 |
# File 'lib/project_types/script/layers/domain/push_package.rb', line 7 def id @id end |
#script ⇒ Object (readonly)
Returns the value of attribute script.
7 8 9 |
# File 'lib/project_types/script/layers/domain/push_package.rb', line 7 def script @script end |
#script_content ⇒ Object (readonly)
Returns the value of attribute script_content.
7 8 9 |
# File 'lib/project_types/script/layers/domain/push_package.rb', line 7 def script_content @script_content end |
Instance Method Details
#push(script_service, api_key, force) ⇒ Object
16 17 18 19 20 21 22 23 24 25 |
# File 'lib/project_types/script/layers/domain/push_package.rb', line 16 def push(script_service, api_key, force) script_service.push( extension_point_type: @script.extension_point_type, script_name: @script.name, script_content: @script_content, compiled_type: @compiled_type, api_key: api_key, force: force ) end |