Method: Omnibus::BuildVersionDSL#source

Defined in:
lib/omnibus/build_version_dsl.rb

#source(source_type, source_options = {}) ⇒ void

This method returns an undefined value.

DSL method to set the source of the build_version

Parameters:

  • source_type (Symbol)

    Can be set to :git or :version

  • source_options (Hash) (defaults to: {})

    Options for the given source_type.



52
53
54
55
# File 'lib/omnibus/build_version_dsl.rb', line 52

def source(source_type, source_options = {})
  @source_type = source_type
  @source_options = source_options
end