Top Level Namespace

Includes:
FileUtils

Defined Under Namespace

Modules: ArgParser, Build, Canuby, Config, Git, Logging, Outputs, Paths, Stage Classes: Project

Instance Method Summary collapse

Instance Method Details

#add_desc(task, comment) ⇒ Object

Add description to rake tasks that show up in help



43
44
45
# File 'lib/canuby/util.rb', line 43

def add_desc(task, comment)
  Rake.application[task].add_description(comment)
end

#const_get(string) ⇒ Object

Acces a constant from a string



38
39
40
# File 'lib/canuby/util.rb', line 38

def const_get(string)
  Object.const_get(string)
end

#const_set(string, klass) ⇒ Object

Creates an instance of the class with the name of string



33
34
35
# File 'lib/canuby/util.rb', line 33

def const_set(string, klass)
  Object.const_set(string, klass)
end

#loggerObject

Shortcut to logger



83
84
85
# File 'lib/canuby/util.rb', line 83

def logger
  Logging.logger
end