Sha256: 5253fc21a18386da1d568470ca679dc3884e9a64ca4b26c1554b4564b6c932d9

Contents?: true

Size: 845 Bytes

Versions: 14

Compression:

Stored size: 845 Bytes

Contents

#!/usr/bin/env ruby
# encoding: UTF-8

# (c) Copyright 2014 Hewlett-Packard Development Company, L.P.
#
#    Licensed under the Apache License, Version 2.0 (the "License");
#    you may not use this file except in compliance with the License.
#    You may obtain a copy of the License at
#
#        http://www.apache.org/licenses/LICENSE-2.0
#
#    Unless required by applicable law or agreed to in writing, software
#    distributed under the License is distributed on an "AS IS" BASIS,
#    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
#    See the License for the specific language governing permissions and
#    limitations under the License.

module Helpers
  def get_home_path
    File.expand_path('~')
  end

  def create_directory(path)
    unless File.directory?(path)
      Dir.mkdir path
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
forj-0.0.35 lib/helpers.rb
forj-0.0.34 lib/helpers.rb
forj-0.0.33 lib/helpers.rb
forj-0.0.32 lib/helpers.rb
forj-0.0.31 lib/helpers.rb
forj-0.0.30 lib/helpers.rb
forj-0.0.29 lib/helpers.rb
forj-0.0.28 lib/helpers.rb
forj-0.0.27 lib/helpers.rb
forj-0.0.26 lib/helpers.rb
forj-0.0.25 lib/helpers.rb
forj-0.0.24 lib/helpers.rb
forj-0.0.23 lib/helpers.rb
forj-0.0.22 lib/helpers.rb