class Utopia::Command::Top

The top level utopia command.

Public Instance Methods

call() click to toggle source
# File lib/utopia/command.rb, line 56
def call
        if @options[:version]
                puts "#{self.name} v#{VERSION}"
        elsif @options[:help]
                print_usage(output: $stdout)
        else
                @command.call
        end
end
root() click to toggle source

The root directory for the site.

# File lib/utopia/command.rb, line 52
def root
        File.expand_path(@options.fetch(:root, ''), Dir.getwd)
end