Class: Dandelion::Deployment::FullDeployment

Inherits:
Deployment
  • Object
show all
Defined in:
lib/dandelion/deployment.rb

Instance Method Summary collapse

Methods inherited from Deployment

create, #initialize, #local_revision, #log, #remote_revision, #validate, #write_revision

Constructor Details

This class inherits a constructor from Dandelion::Deployment::Deployment

Instance Method Details

#deployObject



134
135
136
137
138
139
140
141
142
143
144
# File 'lib/dandelion/deployment.rb', line 134

def deploy
  @tree.files.each do |file|
    if exclude_file?(file)
      log.info("Skipping file: #{file}")
    else
      log.info("Uploading file: #{file}")
      @backend.write(file, @tree.show(file))
    end
  end
  write_revision
end