Class: Avm::Files::Deploy

Inherits:
Object show all
Includes:
Appendable
Defined in:
lib/avm/files/deploy.rb

Instance Attribute Summary collapse

Attributes included from Appendable

#variables_source

Instance Method Summary collapse

Methods included from Appendable

#append_file_content, #append_plain_directory, #append_tar_output_command, #append_templatized_directories, #append_templatized_directory, #appended, #variables_source_set, #write_appended_on

Instance Attribute Details

#build_dirObject (readonly)

Returns the value of attribute build_dir.



14
15
16
# File 'lib/avm/files/deploy.rb', line 14

def build_dir
  @build_dir
end

#target_envObject (readonly)

Returns the value of attribute target_env.



14
15
16
# File 'lib/avm/files/deploy.rb', line 14

def target_env
  @target_env
end

#target_pathObject (readonly)

Returns the value of attribute target_path.



14
15
16
# File 'lib/avm/files/deploy.rb', line 14

def target_path
  @target_path
end

Instance Method Details

#runObject



18
19
20
21
22
23
24
25
26
# File 'lib/avm/files/deploy.rb', line 18

def run
  on_build_dir do
    copy_content_to_build_dir
    mkdir_target
    clear_content
    send_untar_package
    set_target_permission
  end
end