Sha256: 48d9ff0fb5e8de6ac6b2cc0bc0fc899fd69b04d87ff1d098a36c198c98308324

Contents?: true

Size: 669 Bytes

Versions: 3

Compression:

Stored size: 669 Bytes

Contents

# -*- encoding: utf-8 -*-

require 'webgen/cli/utils'

module Webgen
  module CLI

    # The CLI command for generating a webgen website.
    class GenerateCommand < CmdParse::Command

      def initialize # :nodoc:
        super('generate', false, false, false)
        self.short_desc = 'Generate the webgen website'
        self.description = Webgen::CLI::Utils.format_command_desc("This command is executed by default when " +
                                                                  "no other command was specified.")
      end

      def execute(args) # :nodoc:
        commandparser.website.execute_task(:generate_website)
      end

    end

  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
webgen-1.0.0.beta3 lib/webgen/cli/generate_command.rb
webgen-1.0.0.beta2 lib/webgen/cli/generate_command.rb
webgen-1.0.0.beta1 lib/webgen/cli/generate_command.rb