class Bundix::ShellNixContext

Public Class Methods

from_hash(hash) click to toggle source
# File lib/bundix/shell_nix_context.rb, line 3
def self.from_hash(hash)
  new(*hash.values_at(*members))
end

Public Instance Methods

bind() click to toggle source
# File lib/bundix/shell_nix_context.rb, line 7
def bind
  binding
end
gemfile_path() click to toggle source
# File lib/bundix/shell_nix_context.rb, line 15
def gemfile_path
  path_for(gemfile)
end
gemset_path() click to toggle source
# File lib/bundix/shell_nix_context.rb, line 23
def gemset_path
  path_for(gemset)
end
lockfile_path() click to toggle source
# File lib/bundix/shell_nix_context.rb, line 19
def lockfile_path
  path_for(lockfile)
end
path_for(file) click to toggle source
# File lib/bundix/shell_nix_context.rb, line 11
def path_for(file)
  Nixer.serialize(Pathname(file).relative_path_from(Pathname('./')))
end