Class: Yuzu::Command::Publish

Inherits:
PublicationCommand show all
Defined in:
lib/yuzu/commands/publish.rb

Overview

Publish is the primary mechanism to upload files to a remote server such as via FTP or S3.

Constant Summary

Constants included from Uploader

Uploader::ENDC, Uploader::GREEN

Instance Attribute Summary

Attributes inherited from Base

#args

Class Method Summary collapse

Methods inherited from PublicationCommand

#all, #assets, #changed, #css, #images, #index, #resources, #text

Methods inherited from Base

#initialize, requires_config?, service_override, shell, #updater, #uploader, #uploader_config

Constructor Details

This class inherits a constructor from Yuzu::Command::Base

Class Method Details

.help(method) ⇒ Object



7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# File 'lib/yuzu/commands/publish.rb', line 7

def self.help method
  case method
  when :index
%Q{Updates files and publishes to the current remote service.

Can be used in the following forms:

publish                           # Alias for publish:all below.
publish [filenames]               # Publish just the files listed to the remote server.
publish:all                       # Publish and upload all files.
publish:text                      # Only update the processable content files.
publish:css                       # Regenerates the css files and publishes them.
publish:images                    # Upload all the images.
publish:images [files]            # Upload the images given.
publish:resources                 # Upload all resources like CSS and Javascript files.
publish:assets                    # Upload all assets (like PDFs and other downloadables). 
}

  when :all
    "Publishes and uploads all files to the remote server."

  when :resources
    "Publish all resources like CSS and Javascript files."

  when :images
    "Upload all the images or the ones given after the command."

  when :assets
    "Upload all file assets (usually PDF files and other download archives.)"

  else
    "No help available for #{method}."

  end
end