Module: RunShell

Defined in:
lib/run_shell.rb,
lib/run_shell/shell.rb,
lib/run_shell/version.rb,
lib/run_shell/configuration.rb,
lib/run_shell/frameworks/rails.rb,
lib/generators/run_shell/install_generator.rb

Defined Under Namespace

Modules: Rails Classes: Configuration, InstallGenerator, Shell

Constant Summary collapse

VERSION =
"0.0.1"

Class Method Summary collapse

Class Method Details

.configObject



14
15
16
# File 'lib/run_shell.rb', line 14

def config
  @config ||= Configuration.new
end

.run_shell_storeObject



27
28
29
# File 'lib/run_shell.rb', line 27

def self.run_shell_store
  Thread.current[:run_shell] ||= { }
end

.setup {|config| ... } ⇒ Object

Yields:



10
11
12
# File 'lib/run_shell.rb', line 10

def setup
  yield config
end

.whodunnitObject



19
20
21
# File 'lib/run_shell.rb', line 19

def self.whodunnit
  run_shell_store[:whodunnit]
end

.whodunnit=(value) ⇒ Object



23
24
25
# File 'lib/run_shell.rb', line 23

def self.whodunnit=(value)
  run_shell_store[:whodunnit] = value
end