Documentation ¶
Index ¶
- type RubyBuilder
- func (builder *RubyBuilder) Analyze(m module.Module, allowUnresolved bool) ([]module.Dependency, error)
- func (builder *RubyBuilder) Build(m module.Module, force bool) error
- func (builder *RubyBuilder) DiscoverModules(dir string) ([]module.Config, error)
- func (builder *RubyBuilder) Initialize() error
- func (builder *RubyBuilder) IsBuilt(m module.Module, allowUnresolved bool) (bool, error)
- func (builder *RubyBuilder) IsModule(target string) (bool, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RubyBuilder ¶
type RubyBuilder struct { BundlerCmd string BundlerVersion string GemCmd string GemVersion string RubyCmd string RubyVersion string }
RubyBuilder implements Builder for Bundler (Gemfile) builds
func (*RubyBuilder) Analyze ¶
func (builder *RubyBuilder) Analyze(m module.Module, allowUnresolved bool) ([]module.Dependency, error)
Analyze parses a `Gemfile.lock`
func (*RubyBuilder) Build ¶
func (builder *RubyBuilder) Build(m module.Module, force bool) error
Build runs `bundler install --deployment --frozen` and cleans with `rm Gemfile.lock`
func (*RubyBuilder) DiscoverModules ¶
func (builder *RubyBuilder) DiscoverModules(dir string) ([]module.Config, error)
DiscoverModules returns ModuleConfigs that match Gemfiles in the directory
func (*RubyBuilder) Initialize ¶
func (builder *RubyBuilder) Initialize() error
Initialize collects metadata on Ruby, Gem, and Bundler binaries
Click to show internal directories.
Click to hide internal directories.