Class: Pansophy::Remote::FetchFile
- Inherits:
-
Object
- Object
- Pansophy::Remote::FetchFile
- Includes:
- Adamantium::Flat
- Defined in:
- lib/pansophy/remote/fetch_file.rb
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(bucket, path) ⇒ FetchFile
constructor
A new instance of FetchFile.
Constructor Details
#initialize(bucket, path) ⇒ FetchFile
Returns a new instance of FetchFile.
6 7 8 9 |
# File 'lib/pansophy/remote/fetch_file.rb', line 6 def initialize(bucket, path) @bucket = bucket @pathname = Pathname.new(path) end |
Instance Method Details
#call ⇒ Object
11 12 13 14 |
# File 'lib/pansophy/remote/fetch_file.rb', line 11 def call fail ArgumentError, "#{@pathname} does not exist" if file.nil? file end |