module VersionCommand

Specifies the version command

Public Class Methods

included(thor) click to toggle source
# File lib/plugins/commands/version_command.rb, line 5
  def self.included(thor)
    thor.class_eval do
      long_desc <<-LONGDESC

Prints the current version of Radial.

      LONGDESC

      descf "version", nil,
            "Prints the current version of Radial. (Aliases: --version, -v)"
      map "-v" => "version",
          "--version" => "version"
      def version
        inf(Conf.version)
      end
    end
  end

Public Instance Methods

version() click to toggle source
# File lib/plugins/commands/version_command.rb, line 17
def version
  inf(Conf.version)
end