Sha256: 86518a5227d51c6d68b168a5512b62a3843577adb80979776cd144ce1e60ea3f
Contents?: true
Size: 1.07 KB
Versions: 19
Compression:
Stored size: 1.07 KB
Contents
module QB; end module QB::Ansible; end # @todo document QB::Ansible::Env class. class QB::Ansible::Env::Devel < QB::Ansible::Env ANSIBLE_HOME = QB::ROOT / 'packages' / 'python' / 'ansible' # Instance Methods # ====================================================================== # @todo Document to_h method. # # @param [type] arg_name # @todo Add name param description. # # @return [return_type] # @todo Document return value. # def to_h hash = super hash['ANSIBLE_HOME'] = ANSIBLE_HOME.to_s hash['PYTHONPATH'] = [ # (QB::ROOT / 'lib' / 'python'), (ANSIBLE_HOME / 'lib'), ENV['PYTHONPATH'], ]. compact. map( &:to_s ). join( ':' ) path = ENV['PATH'].split ':' path.insert \ path.find_index { |p| ! p.start_with?( './' ) }, (ANSIBLE_HOME / 'bin').to_s hash['PATH'] = path.join ':' # hash['ANSIBLE_CONNECTION'] = 'local' # hash['ANSIBLE_PYTHON_INTERPRETER'] = '/usr/local/bin/python2' hash end # #to_h end # class QB::Ansible::Env
Version data entries
19 entries across 19 versions & 1 rubygems