Method: Rake::Pipeline::Step.parse_filename

Defined in:
lib/rake_pipeline.rb

.parse_filename(filename) ⇒ Object



63
64
65
66
67
68
69
70
# File 'lib/rake_pipeline.rb', line 63

def parse_filename(filename)
  filename.match(/^(.*?)([^\/]*)\/([^\/]*)$/)
  {
    :prefix => $1 == "" ? "." : $1,
    :step => $2,
    :job => $3,
  }
end