Sha256: 5f0dcfc7c8a7569c2df394a97ea429b1b7b58b3370560f9d9a2ba51e02b19090

Contents?: true

Size: 610 Bytes

Versions: 12

Compression:

Stored size: 610 Bytes

Contents

# A single command/script to be run on a local/remote server
# For the display, it has an active ("installing") and 
# past tense ("installed") verb and a noub/description ("packages")
module Bosh::Bootstrap::Commander
  class UploadCommand < Command
    def initialize(target_path, file_contents)
      super("upload", "file", "uploading file", "uploaded file")
      @target_path = target_path
      @file_contents = file_contents
    end

    # Invoke this command to call back upon +server.upload_file+ 
    def perform(server)
      server.upload_file(self, @target_path, @file_contents)
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
bosh-bootstrap-0.10.2 lib/bosh-bootstrap/commander/upload_command.rb
bosh-bootstrap-0.10.1 lib/bosh-bootstrap/commander/upload_command.rb
bosh-bootstrap-0.10.0 lib/bosh-bootstrap/commander/upload_command.rb
bosh-bootstrap-0.9.0 lib/bosh-bootstrap/commander/upload_command.rb
bosh-bootstrap-0.8.2 lib/bosh-bootstrap/commander/upload_command.rb
bosh-bootstrap-0.8.1 lib/bosh-bootstrap/commander/upload_command.rb
bosh-bootstrap-0.8.0 lib/bosh-bootstrap/commander/upload_command.rb
bosh-bootstrap-0.7.1 lib/bosh-bootstrap/commander/upload_command.rb
bosh-bootstrap-0.7.0 lib/bosh-bootstrap/commander/upload_command.rb
bosh-bootstrap-0.6.0 lib/bosh-bootstrap/commander/upload_command.rb
bosh-bootstrap-0.5.1 lib/bosh-bootstrap/commander/upload_command.rb
bosh-bootstrap-0.5.0 lib/bosh-bootstrap/commander/upload_command.rb