Sha256: 8571c845633bc8450c97383a0b6541f27d4a551e1c9da2121f33b4c09c1f3d69

Contents?: true

Size: 1.46 KB

Versions: 1

Compression:

Stored size: 1.46 KB

Contents

#--
# Copyright (c) 2010-2013 Michael Berkovich, tr8nhub.com
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without limitation the rights to use, copy, modify, merge, publish,
# distribute, sublicense, and/or sell copies of the Software, and to
# permit persons to whom the Software is furnished to do so, subject to
# the following conditions:
#
# The above copyright notice and this permission notice shall be
# included in all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
# LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
# OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
# WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#++

require 'rails/generators'

class Tr8nClientSdkGenerator < Rails::Generators::Base

  def self.source_root
    @source_root ||= File.expand_path('../templates', __FILE__)
  end

  def copy_configuration
    config_source = File.expand_path("#{self.class.source_root}/config/tr8n", __FILE__)
    system "rsync -ruv #{config_source} #{Rails.root}/config"
  end
  
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
tr8n_client_sdk-1.0.0 lib/generators/tr8n_client_sdk/tr8n_client_sdk_generator.rb