Class: TravisCustomDeploy::Transfer::Base
- Inherits:
-
Object
- Object
- TravisCustomDeploy::Transfer::Base
- Defined in:
- lib/travis-custom-deploy/transfer/base.rb
Instance Attribute Summary collapse
-
#files ⇒ Object
readonly
Returns the value of attribute files.
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Instance Method Summary collapse
-
#check_options ⇒ Object
The method which needs to be implemented by subclasses to check if the remote options are sufficient for the defined transfer type.
-
#initialize(options, files) ⇒ Base
constructor
A new instance of Base.
-
#transfer ⇒ Object
The method which needs to be implemented by subclasses of transfer types.
Constructor Details
#initialize(options, files) ⇒ Base
Returns a new instance of Base.
10 11 12 13 14 |
# File 'lib/travis-custom-deploy/transfer/base.rb', line 10 def initialize(, files) @options = @files = files () end |
Instance Attribute Details
#files ⇒ Object (readonly)
Returns the value of attribute files.
8 9 10 |
# File 'lib/travis-custom-deploy/transfer/base.rb', line 8 def files @files end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
7 8 9 |
# File 'lib/travis-custom-deploy/transfer/base.rb', line 7 def @options end |
Instance Method Details
#check_options ⇒ Object
The method which needs to be implemented by subclasses to check if the remote options are sufficient for the defined transfer type
25 26 27 |
# File 'lib/travis-custom-deploy/transfer/base.rb', line 25 def raise NotImplementedError end |
#transfer ⇒ Object
The method which needs to be implemented by subclasses of transfer types.
18 19 20 |
# File 'lib/travis-custom-deploy/transfer/base.rb', line 18 def transfer raise NotImplementedError end |