class DataMetaBuild

Utilities for building and deploying applications.

@!attribute [rw] target

@return [String] build target directory name.
@see TARGET_DIR

Constants

TARGET_DIR

Default build target directory, to mimic Maven it’s literally “target”.

VERSION

Current version

Attributes

target[RW]

Public Class Methods

new(target = TARGET_DIR) click to toggle source

Initializes the instance with the given target directory, defaulted to TARGET_DIR

# File lib/dataMetaBuild.rb, line 24
def initialize(target = TARGET_DIR); @target = target end

Public Instance Methods

clean() click to toggle source

Removes target if it exists.

# File lib/dataMetaBuild.rb, line 30
def clean
  FileUtils.remove_dir(target, true) if File.exists? target_dir
end
init() click to toggle source

Creates target if it does not exist.

# File lib/dataMetaBuild.rb, line 27
def init; FileUtils.mkpath target end