Module: Flux

Defined in:
lib/flux.rb,
lib/flux/rcs/git.rb,
lib/flux/util/table.rb,
lib/flux/util/output.rb,
lib/flux/workflows/mojotech.rb,
lib/flux/ext/pivotal-tracker.rb,
lib/flux/trackers/pivotal_tracker.rb

Defined Under Namespace

Modules: PivotalTracker, RCS, Trackers, Util, Workflows Classes: FluxError, Runner, TrackerError

Constant Summary collapse

RC =
'.flux'
RC_LOCAL =
RC + '.local'

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.environmentObject

Returns the value of attribute environment.



16
17
18
# File 'lib/flux.rb', line 16

def environment
  @environment
end

Class Method Details

.find_upwards(object, start_dir) ⇒ Object



26
27
28
29
30
31
32
33
34
35
36
37
# File 'lib/flux.rb', line 26

def find_upwards(object, start_dir)
  p  = Pathname(start_dir)
  f  = (p + object).expand_path.to_s

  if File.exist?(f)
    f
  elsif p == p.parent
    nil
  else
    find_upwards(p.parent)
  end
end

.setupObject



18
19
20
21
22
23
24
# File 'lib/flux.rb', line 18

def setup
  self.environment = load_environment

  environment.each { |k, v|
    load_adapter k, v['adapter'] if v.is_a?(Hash) && v['adapter']
  }
end