class Tod::Travis
Public Class Methods
new(yml = {})
click to toggle source
# File lib/tod/travis.rb, line 8 def initialize(yml = {}) @yml = yml.symbolize_keys end
Public Instance Methods
before()
click to toggle source
# File lib/tod/travis.rb, line 20 def before Array(@yml[:before_script]) || [] end
env()
click to toggle source
# File lib/tod/travis.rb, line 12 def env Hash(@yml[:env]) || {} end
script()
click to toggle source
# File lib/tod/travis.rb, line 16 def script Array(@yml[:script]) || [] end
section(section)
click to toggle source
# File lib/tod/travis.rb, line 28 def section(section) send(section.to_sym) end
setup()
click to toggle source
# File lib/tod/travis.rb, line 24 def setup Array(@yml[:before_install]) || [] end