Sha256: ea4891a22f8b487ced504870d44cedcfb6f90889147fddf13f762a66ccc320f9

Contents?: true

Size: 1.45 KB

Versions: 2

Compression:

Stored size: 1.45 KB

Contents

#--
# Copyright (c) 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

2 entries across 2 versions & 1 rubygems

Version Path
tr8n_client_sdk-1.1.1 lib/generators/tr8n_client_sdk/tr8n_client_sdk_generator.rb
tr8n_client_sdk-1.1.0 lib/generators/tr8n_client_sdk/tr8n_client_sdk_generator.rb