Sha256: 469bfe3b945b5e791f18d553d46eaddd84c03faf8e1e49525ea4864f52df16aa

Contents?: true

Size: 657 Bytes

Versions: 6

Compression:

Stored size: 657 Bytes

Contents

module KepplerFrontend
  module Admin
    # HtmlFileService
    class HtmlFileService

      def initialize(view)
        @view = view
      end

      def url_front
        "#{Rails.root}/rockets/keppler_frontend"
      end

      def install_html
        out_file = File.open("#{url_front}/app/views/keppler_frontend/app/frontend/#{name}.html.erb", "w")
        out_file.puts("<h1> #{name} template </h1>");
        out_file.close
        true
      end

      def uninstall_html
        file = "#{url_front}/app/views/keppler_frontend/app/frontend/#{name}.html.erb"
        File.delete(file) if File.exist?(file)
        true
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
keppler-2.1.4 installer/core/rockets/keppler_frontend/app/services/keppler_frontend/admin/html_file_services.rb
keppler-2.1.3 installer/core/rockets/keppler_frontend/app/services/keppler_frontend/admin/html_file_services.rb
keppler-2.1.2 installer/core/rockets/keppler_frontend/app/services/keppler_frontend/admin/html_file_services.rb
keppler-2.1.1 installer/core/rockets/keppler_frontend/app/services/keppler_frontend/admin/html_file_services.rb
keppler-2.1.pre.p1 installer/core/rockets/keppler_frontend/app/services/keppler_frontend/admin/html_file_services.rb
keppler-2.1 installer/core/rockets/keppler_frontend/app/services/keppler_frontend/admin/html_file_services.rb