Sha256: a8aa6b3789ce4dd48d300987815c051f50ec1dc7536167adefa2ce9bbc8fdda0
Contents?: true
Size: 714 Bytes
Versions: 1
Compression:
Stored size: 714 Bytes
Contents
module Lanes module Command class NamedCommand < Thor::Group include Thor::Actions argument :name attr_reader :namespace, :class_name, :client_dir def self.source_root Pathname.new(__FILE__).dirname.join("templates") end def load_namespace @namespace = options[:namespace] || Command.load_current_extension.identifier raise Thor::Error("Unable to locate Lanes environment") unless @namespace end def set_variables @class_name = name.classify @client_dir = "client/#{namespace}" end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
lanes-0.0.5 | lib/lanes/command/named_command.rb |