Sha256: 25caf23706bea8252edef5c9d89e4ffbdaa2373467f4996d660d8a09c96b77f8

Contents?: true

Size: 405 Bytes

Versions: 36

Compression:

Stored size: 405 Bytes

Contents

class Ufo::TaskDefinition::Erb
  class Base < Ufo::CLI::Base
    def initialize(options={})
      super
      @path = options[:path]
      @task_definition = options[:task_definition]
    end

    def print_code(text)
      lines = text.split("\n")
      lpad = lines.size.to_s.size
      lines.each_with_index do |line,n|
        printf("%#{lpad}d %s\n", n+1, line)
      end
      nil
    end
  end
end

Version data entries

36 entries across 36 versions & 1 rubygems

Version Path
ufo-6.3.13 lib/ufo/task_definition/erb/base.rb
ufo-6.3.12 lib/ufo/task_definition/erb/base.rb
ufo-6.3.11 lib/ufo/task_definition/erb/base.rb
ufo-6.3.10 lib/ufo/task_definition/erb/base.rb
ufo-6.3.9 lib/ufo/task_definition/erb/base.rb
ufo-6.3.8 lib/ufo/task_definition/erb/base.rb
ufo-6.3.7 lib/ufo/task_definition/erb/base.rb
ufo-6.3.6 lib/ufo/task_definition/erb/base.rb
ufo-6.3.5 lib/ufo/task_definition/erb/base.rb
ufo-6.3.4 lib/ufo/task_definition/erb/base.rb
ufo-6.3.3 lib/ufo/task_definition/erb/base.rb
ufo-6.3.2 lib/ufo/task_definition/erb/base.rb
ufo-6.3.1 lib/ufo/task_definition/erb/base.rb
ufo-6.3.0 lib/ufo/task_definition/erb/base.rb
ufo-6.2.5 lib/ufo/task_definition/erb/base.rb
ufo-6.2.4 lib/ufo/task_definition/erb/base.rb
ufo-6.2.3 lib/ufo/task_definition/erb/base.rb
ufo-6.2.2 lib/ufo/task_definition/erb/base.rb
ufo-6.2.1 lib/ufo/task_definition/erb/base.rb
ufo-6.2.0 lib/ufo/task_definition/erb/base.rb