Sha256: 86ba4231f9941f633c3e67624d419cec08238defe601b4354909b79cd7556738

Contents?: true

Size: 520 Bytes

Versions: 2

Compression:

Stored size: 520 Bytes

Contents

class VimmerStub

  def installed_plugins
    bundle_path.entries.map do |entry|
      next if entry.to_s =~ /^\.\.?$/

      entry = bundle_path.join(entry)
      if entry.directory?
        entry.split.last.to_s
      end
    end.compact
  end


  def plugin_store
    if plugin_store_file.exist?
      YAML.load_file(plugin_store_file)
    else
      {}
    end
  end

  def plugin_store_file
    Pathname.new("tmp/aruba/.vimmer/plugins.yml")
  end


  def bundle_path
    Pathname.new("tmp/aruba/bundle")
  end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
vimmer-0.2.0 features/support/vimmer_stub.rb
vimmer-0.1.0 features/support/vimmer_stub.rb