Sha256: 68a91b01bca1f7fc1064f0e37202342e20b60e08090b26fdf7ec53a0a3c722c2
Contents?: true
Size: 914 Bytes
Versions: 3
Compression:
Stored size: 914 Bytes
Contents
module Lanes module Command class NamedCommand < Thor::Group include Thor::Actions argument :name attr_reader :namespace, :class_name, :client_dir, :spec_dir, :identifier def self.source_root Pathname.new(__FILE__).dirname.join("..","..","..","templates") end def load_namespace @identifier = extension.identifier @namespace = options[:namespace] || @identifier.underscore.camelize end def set_variables @class_name = name.underscore.classify @spec_dir = "spec/#{identifier}" @client_dir = "client/#{identifier}" end protected def extension @extension ||= Command.load_current_extension(raise_on_fail:true) end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
lanes-0.1.8 | lib/lanes/command/named_command.rb |
lanes-0.1.7 | lib/lanes/command/named_command.rb |
lanes-0.1.6 | lib/lanes/command/named_command.rb |