class Spring::Commands::Any
Constants
- VERSION
Public Class Methods
commands()
click to toggle source
# File lib/spring/commands/any.rb, line 8 def self.commands # Installed spring-commands-Gems, except this gem spring_commands = Gem::Specification .map(&:name) .grep(/^spring-commands-/) .map {|name| name.sub "spring-commands-", "" } .reject {|name| name == "any" } # built in commands binstubs = ["rails", "rake", "spring", "bundle"] + spring_commands Pathname.glob(Spring.application_root_path.join("{bin,script}/*")) .map {|path| path.basename.to_s} .reject {|binstub| binstub.end_with? *binstubs } end
Public Instance Methods
env(args)
click to toggle source
# File lib/spring/commands/any.rb, line 24 def env(args) RailsRunner.new.env(args) end