Module: Inprovise
- Defined in:
- lib/inprovise/version.rb,
lib/inprovise.rb
Overview
Version definition for Inprovise
- Author
-
Martin Corino
- License
-
Distributes under the same license as Ruby
Defined Under Namespace
Modules: CmdChannel, CmdHelper, DSL, Infrastructure, Sniffer
Classes: Cli, Config, Controller, ExecutionContext, LocalFile, Logger, MissingActionError, MockExecutionContext, RemoteFile, Resolver, Script, ScriptIndex, ScriptRunner, Template, TriggerRunner
Constant Summary
collapse
- INFRA_FILE =
'infra.json'
- RC_FILE =
'rigrc'
- DEFAULT_SCHEME =
'inprovise.rb'
- VERSION =
'0.2.29'
Class Method Summary
collapse
Class Method Details
.add_script(script) {|script| ... } ⇒ Object
80
81
82
83
84
|
# File 'lib/inprovise.rb', line 80
def add_script(script)
yield(script) if block_given?
Inprovise::ScriptIndex.default.add(script)
script
end
|
.default_scheme ⇒ Object
64
65
66
|
# File 'lib/inprovise.rb', line 64
def default_scheme
ENV['INPROVISE_SCHEME'] || Inprovise::DEFAULT_SCHEME
end
|
.demonstrate ⇒ Object
40
41
42
|
# File 'lib/inprovise.rb', line 40
def demonstrate
@demonstrate ||= false
end
|
.demonstrate=(f) ⇒ Object
44
45
46
|
# File 'lib/inprovise.rb', line 44
def demonstrate=(f)
@demonstrate = (f == true)
end
|
.infra ⇒ Object
56
57
58
|
# File 'lib/inprovise.rb', line 56
def infra
@infra ||= (ENV['INPROVISE_INFRA'] || find_infra)
end
|
.loaded?(scheme) ⇒ Boolean
72
73
74
|
# File 'lib/inprovise.rb', line 72
def loaded?(scheme)
schemes.include?(File.expand_path(scheme, root))
end
|
.log ⇒ Object
76
77
78
|
# File 'lib/inprovise.rb', line 76
def log
@log ||= Inprovise::Logger.new('Local', 'cli')
end
|
.root ⇒ Object
60
61
62
|
# File 'lib/inprovise.rb', line 60
def root
@root ||= File.dirname(infra)
end
|
.schemes ⇒ Object
68
69
70
|
# File 'lib/inprovise.rb', line 68
def schemes
@schemes ||= []
end
|
.sequential ⇒ Object
32
33
34
|
# File 'lib/inprovise.rb', line 32
def sequential
@sequential ||= false
end
|
.sequential=(f) ⇒ Object
36
37
38
|
# File 'lib/inprovise.rb', line 36
def sequential=(f)
@sequential = (f == true)
end
|
.show_backtrace ⇒ Object
24
25
26
|
# File 'lib/inprovise.rb', line 24
def show_backtrace
@show_backtrace ||= false
end
|
.show_backtrace=(f) ⇒ Object
28
29
30
|
# File 'lib/inprovise.rb', line 28
def show_backtrace=(f)
@show_backtrace = (f == true)
end
|
.skip_dependencies ⇒ Object
48
49
50
|
# File 'lib/inprovise.rb', line 48
def skip_dependencies
@skip_dependencies ||= false
end
|
.skip_dependencies=(f) ⇒ Object
52
53
54
|
# File 'lib/inprovise.rb', line 52
def skip_dependencies=(f)
@skip_dependencies = (f == true)
end
|
.verbosity ⇒ Object
16
17
18
|
# File 'lib/inprovise.rb', line 16
def verbosity
@verbose ||= 0
end
|
.verbosity=(val) ⇒ Object
20
21
22
|
# File 'lib/inprovise.rb', line 20
def verbosity=(val)
@verbose = val.to_i
end
|