lib/generators/taverna_player/models_generator.rb
#------------------------------------------------------------------------------
# Copyright (c) 2013, 2014 The University of Manchester, UK.
#
# BSD Licenced. See LICENCE.rdoc for details.
#
# Taverna Player was developed in the BioVeL project, funded by the European
# Commission 7th Framework Programme (FP7), through grant agreement
# number 283359.
#
# Author: Robert Haines
#------------------------------------------------------------------------------
module TavernaPlayer
module Generators
class ModelsGenerator < Rails::Generators::Base
source_root File.expand_path("../../templates/models", __FILE__)
desc "Copy the Taverna Player models into the main app for "\
"customization."
def copy_models
%w(run run_port workflow).each do |file|
copy_file "#{file}.rb", "app/models/taverna_player/#{file}.rb"
end
end
end
end
end