Sha256: d729cc29f1fe26d5abb6010441da1ea4434b860f07427d0d012ee4df806e7b79

Contents?: true

Size: 1.18 KB

Versions: 4

Compression:

Stored size: 1.18 KB

Contents

class Stencil
  class Msg
    class <<self
      
      def cherry_pick(branch, commit)
        space
        puts "Cherry picked #{commit} to \"#{branch}\""
      end
      
      def error(output)
        space
        puts "Oops:\n#{output}"
        exit
      end
      
      def error_specify_template
        space
        puts "Please tell stencil what template you want to receive updates from:"
        puts "  stencil TEMPLATE [BRANCH BRANCH ...]"
        exit
      end
      
      def is_template_or_project?(name)
        space
        puts "Is \"#{name}\" a template or a project?"
      end
      
      def merge_remote_branch(branch)
        space
        puts "Merging remote branch \"#{branch}\""
      end
      
      def merging_x_into_y(x, y)
        puts "Merging \"#{x}\" into \"#{y}\""
      end
      
      def project_url(url)
        space
        puts "Found project URL: #{url}"
      end
      
      def space
        puts ''
      end
      
      def template_not_found(template)
        space
        puts "Template \"#{template}\" not found."
      end
      
      def template_url(url)
        space
        puts "Found template URL: #{url}"
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
stencil-0.1.5 lib/stencil/msg.rb
stencil-0.1.4 lib/stencil/msg.rb
stencil-0.1.3 lib/stencil/msg.rb
stencil-0.1.2 lib/stencil/msg.rb