Sha256: 58583ea66cdd46849d0612c5ed1b17f4bf23fb6a625e0a058ca59739ef384a71

Contents?: true

Size: 927 Bytes

Versions: 4

Compression:

Stored size: 927 Bytes

Contents

require 'fileutils'

class ContentCommand < CmdParse::Command


    def initialize
        super( 'content', true, true )
        @short_desc = _("Manage static content")
        
        publish = CmdParse::Command.new( 'publish', false )
        publish.short_desc = _("Publish apps static content to home public folder")
        publish.options = CmdParse::OptionParserWrapper.new do |opt|
        end
        
        publish.set_execution_block do |args|
            require 'spiderfw'
            Spider::StaticContent.publish
        end
        
        self.add_command(publish)
        
        compress = CmdParse::Command.new('compress', false)
        compress.short_desc = _("Compress Javascript files")
        compress.set_execution_block do |args|
            require 'spiderfw'
            Spider::StaticContent.compress(*args)
        end
        
        self.add_command(compress)
        
    end
    
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
spiderfw-0.5.13 lib/spiderfw/cmd/commands/content.rb
spiderfw-0.5.12 lib/spiderfw/cmd/commands/content.rb
spiderfw-0.5.11 lib/spiderfw/cmd/commands/content.rb
spiderfw-0.5.10 lib/spiderfw/cmd/commands/content.rb