Sha256: 4f1d75eb85b44afe29e6aff2bb77031212d03d8e440ad1b7250bee1afa17c596

Contents?: true

Size: 404 Bytes

Versions: 1

Compression:

Stored size: 404 Bytes

Contents

# frozen_string_literal: true

module Space2underscore
  class Executor
    include Singleton

    def run_with_raw(underscore_include_sentence)
      run underscore_include_sentence
    end

    def run_with_downcase(underscore_include_sentence)
      run underscore_include_sentence.downcase
    end

    private

    def run(sentence)
      exit system "git checkout -b #{sentence}"
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
space2underscore-0.5.3 lib/space2underscore/executor.rb