Skip to content

Commit

Permalink
checkpoint. WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
datapimp committed Mar 20, 2013
1 parent 486df0a commit 8cfe76b
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 8 deletions.
3 changes: 3 additions & 0 deletions lib/code_sync/cli.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -60,6 +61,8 @@ def start
runner.start()
end

Pry.start(binding, quiet: true)

Process.waitpid
end

Expand Down
1 change: 0 additions & 1 deletion lib/code_sync/publisher.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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 )
Expand Down
3 changes: 0 additions & 3 deletions lib/code_sync/server.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
16 changes: 12 additions & 4 deletions lib/code_sync/sprockets_adapter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8cfe76b

Please sign in to comment.