Class: JBundler::AetherConfig

Inherits:
Object
  • Object
show all
Defined in:
lib/jbundler/aether.rb

Overview

allow yaml config in $HOME/.jbundlerrc and $PWD/.jbundlerrc

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeAetherConfig

Returns a new instance of AetherConfig.



10
11
12
13
14
15
16
# File 'lib/jbundler/aether.rb', line 10

def initialize
  file = '.jbundlerrc'
  homefile = File.join(ENV['HOME'], file)
  home_config = YAML.load_file(homefile) if File.exists?(homefile)
  pwd_config = YAML.load_file(file) if File.exists?(file)
  @config = (home_config || {}).merge(pwd_config || {})
end

Instance Attribute Details

#gemfileObject

Returns the value of attribute gemfile.



8
9
10
# File 'lib/jbundler/aether.rb', line 8

def gemfile
  @gemfile
end

#jarfileObject

Returns the value of attribute jarfile.



8
9
10
# File 'lib/jbundler/aether.rb', line 8

def jarfile
  @jarfile
end

#local_repositoryObject

Returns the value of attribute local_repository.



8
9
10
# File 'lib/jbundler/aether.rb', line 8

def local_repository
  @local_repository
end

#skipObject

Returns the value of attribute skip.



8
9
10
# File 'lib/jbundler/aether.rb', line 8

def skip
  @skip
end

#verboseObject

Returns the value of attribute verbose.



8
9
10
# File 'lib/jbundler/aether.rb', line 8

def verbose
  @verbose
end

Instance Method Details

#classpath_fileObject



53
54
55
# File 'lib/jbundler/aether.rb', line 53

def classpath_file
  '.jbundler/classpath.rb'
end