Class: Itamae::Resource::RemoteFile

Inherits:
File
  • Object
show all
Defined in:
lib/itamae/resource/remote_file.rb

Instance Attribute Summary

Attributes inherited from Base

#attributes, #current_attributes, #notifications, #recipe, #resource_name, #subscriptions, #updated

Instance Method Summary collapse

Methods inherited from File

#action_create, #action_delete, #set_current_attributes, #show_differences

Methods inherited from Base

#action_nothing, define_attribute, inherited, #initialize, #resource_type, #run

Constructor Details

This class inherits a constructor from Itamae::Resource::Base

Instance Method Details

#pre_actionObject



8
9
10
11
12
13
# File 'lib/itamae/resource/remote_file.rb', line 8

def pre_action
  attributes.content_file =
    ::File.expand_path(attributes.source, ::File.dirname(@recipe.path))

  super
end