Permalink
Browse files

checkpoint. WIP

  • Loading branch information...
1 parent 486df0a commit 8cfe76bc122e9141326fe56ccb19bca3994062d9 @datapimp committed Mar 20, 2013
Showing with 15 additions and 8 deletions.
  1. +3 −0 lib/code_sync/cli.rb
  2. +0 −1 lib/code_sync/publisher.rb
  3. +0 −3 lib/code_sync/server.rb
  4. +12 −4 lib/code_sync/sprockets_adapter.rb
View
@@ -47,6 +47,7 @@ def start
server = CodeSync::Server.new(root: Dir.pwd())
watcher = CodeSync::Watcher.new(root: Dir.pwd(), assets: server.assets, faye: server.faye)
runner = CodeSync::CommandRunner.new(client: server.faye.get_client, assets: server.assets)
+ publisher = watcher.notifier
fork do
server.start(9295)
@@ -60,6 +61,8 @@ def start
runner.start()
end
+ Pry.start(binding, quiet: true)
+
Process.waitpid
end
@@ -16,7 +16,6 @@ def shutdown
end
def publish channel="/code-sync", message="{status:'ok'}"
- binding.pry
puts "Publishing to #{ channel } #{ message.length }"
EM.run do
pub = client.publish( channel, message )
View
@@ -34,11 +34,8 @@ class Middleware
class FayeMonitor
def incoming(message,callback)
- puts "Received incoming message"
- puts message.inspect
callback.call(message)
end
-
end
class ServerInfo
@@ -5,10 +5,18 @@
module CodeSync
class AssetPipelineGems
TestPaths = %w{
- assets
- app/assets
- lib/assets
- vendor/assets
+ assets/stylesheets
+ assets/javascripts
+ assets/images
+ app/assets/javascripts
+ lib/assets/javascripts
+ vendor/assets/javascripts
+ app/assets/stylesheets
+ lib/assets/stylesheets
+ vendor/assets/stylesheets
+ app/assets/images
+ lib/assets/images
+ vendor/assets/images
}
def self.gems

0 comments on commit 8cfe76b

Please sign in to comment.