Class: Yuzu::Command::Stage

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

Overview

Stage is used as a third mechanism to render the webpage under production settings, but still to a local file system. The scenario may be that the website must be published with a different mechanism than what is automated, so this enables someone to render with the appropriate linkroot for the final production destination.

Constant Summary

Constants included from Uploader

Uploader::ENDC, Uploader::GREEN

Instance Attribute Summary

Attributes inherited from Base

#args

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from PublicationCommand

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

Methods inherited from Base

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

Constructor Details

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

Class Method Details

.help(method) ⇒ Object



20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
# File 'lib/yuzu/commands/stage.rb', line 20

def self.help method
  case method
  when :index
%Q{Updates files in the staging folder.

Can be used in the following forms:

stage                           # Alias for stage:all below.
stage [filenames]               # Update the local staging folder with the files listed.
stage:all                       # Update all the files in the staging folder.
stage:text                      # Only update the processable content files.
stage:css                       # Regenerates the CSS files and copies them
                              to the staging folder.
stage:images                    # Copy all the images into the staging folder.
stage:images [files]            # Copy the images listed into the staging folder.
stage:resources                 # Copy all the resources, like CSS and JS
                              files, into the staging folder.
stage:assets                    # Copy all images and other assets (like PDFs and
                              other downloadables) into the staging folder.
}

  when :all
    "Updates all files in the staging folder."

  when :resources
    "Copy all the resources, like CSS and JS files, into the staging folder."

  when :images
    "Copy all images into the preview folder."

  when :assets
    %Q{Copy all images and other assets, usually PDF files and other archives, 
into the staging folder.}

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

  end
end

.service_overrideObject



16
17
18
# File 'lib/yuzu/commands/stage.rb', line 16

def self.service_override
  "stage"
end

Instance Method Details

#helpObject



13
14
# File 'lib/yuzu/commands/stage.rb', line 13

def help
end

#usageObject



10
11
# File 'lib/yuzu/commands/stage.rb', line 10

def usage
end