app/models/aws/s3_storage.rb
def publish_to_sftp(filename, transport_process, uri)
      conn = AmqpConnectionProvider.start_connection
      eb = Amqp::EventBroadcaster.new(conn)
      aws_key = uri.split("#").last
      props = {:headers => {:artifact_key => aws_key, :file_name => filename, :transport_process => transport_process}, :routing_key => "info.events.transport_artifact.transport_requested"}
      eb.broadcast(props, "payload")
      conn.close
    end
# Here's an option to publish to SFTP.
Here's an option to publish to SFTP.
Here ' s an option to publish to SFTP .
def publish_to_sftp(filename, transport_process, uri)
      conn = AmqpConnectionProvider.start_connection
      eb = Amqp::EventBroadcaster.new(conn)
      aws_key = uri.split("#").last
      props = {:headers => {:artifact_key => aws_key, :file_name => filename, :transport_process => transport_process}, :routing_key => "info.events.transport_artifact.transport_requested"}
      eb.broadcast(props, "payload")
      conn.close
    end
def publish_to_sftp ( filename , transport_process , uri ) conn = AmqpConnectionProvider . start_connection eb = Amqp :: EventBroadcaster . new ( conn ) aws_key = uri . split ( "#" ) . last props = { :headers => { :artifact_key => aws_key , :file_name => filename , :transport_process => transport_process } , :routing_key => "info.events.transport_artifact.transport_requested" } eb . broadcast ( props , "payload" ) conn . close end
Here's an option to publish to SFTP.
Here ' s an option to publish to SFTP .
filename
transport_process
uri