bandshell 0.0.8 → 0.0.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/bin/bandshelld ADDED
@@ -0,0 +1,11 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ # control wrapper for ConcertoConfigServer sinatra app
4
+
5
+ require "rubygems"
6
+ require "daemons"
7
+ require "bandshell/application/app"
8
+
9
+ Daemons.run_proc("bandshelld", :dir_mode => :system) do
10
+ ConcertoConfigServer.run!
11
+ end
@@ -4,7 +4,7 @@ require 'haml'
4
4
  require 'json'
5
5
  require 'net/http'
6
6
  require 'ipaddress'
7
- require 'netconfig'
7
+ require 'bandshell/netconfig'
8
8
  require 'sys/uptime'
9
9
  require 'sys/proctable'
10
10
  include Sys
@@ -317,4 +317,3 @@ class ConcertoConfigServer < Sinatra::Base
317
317
 
318
318
  end
319
319
 
320
- ConcertoConfigServer.run!
File without changes
File without changes
File without changes
@@ -1,9 +1,9 @@
1
- require 'live_image'
1
+ require 'bandshell/live_image'
2
2
  require 'fileutils'
3
3
 
4
4
  # A key/value store for strings.
5
5
  # Right now implemented as disk files.
6
- module ConcertoConfig
6
+ module Bandshell
7
7
  module ConfigStore
8
8
  @@path = nil
9
9
 
@@ -2,7 +2,7 @@ require 'tempfile'
2
2
 
3
3
  # Functions for dealing with the live image
4
4
  # (where it's mounted, if it's read-only, etc)
5
- module ConcertoConfig
5
+ module Bandshell
6
6
  module LiveImage
7
7
  def self.mountpoint
8
8
  '/live/image'
@@ -3,7 +3,7 @@
3
3
  require 'rubygems'
4
4
  require 'json'
5
5
  require 'ipaddress'
6
- require 'config_store'
6
+ require 'bandshell/config_store'
7
7
 
8
8
  # The big idea here is that we have connection methods (layer 2)
9
9
  # and addressing methods (layer 3) and by combining that configuration
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bandshell
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.8
4
+ version: 0.0.9
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-03-30 00:00:00.000000000 Z
12
+ date: 2013-04-19 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: sinatra
@@ -96,28 +96,28 @@ email: andrew@asquaredlabs.com
96
96
  executables:
97
97
  - concerto_netsetup
98
98
  - concerto_configserver
99
+ - bandshelld
99
100
  extensions: []
100
101
  extra_rdoc_files: []
101
102
  files:
102
- - lib/live_image.rb
103
- - lib/netconfig.rb
104
- - lib/config_store.rb
105
- - web/config.ru
106
- - web/app.rb
107
- - web/public/network.js
108
- - web/public/stylesheet.css
109
- - web/public/problem.js
110
- - web/public/trollface.png
111
- - web/views/main.haml
112
- - web/views/password.haml
113
- - web/views/setup.haml
114
- - web/views/netsettings.haml
115
- - web/views/problem.haml
116
- - web/views/player_status.haml
103
+ - lib/bandshell/live_image.rb
104
+ - lib/bandshell/netconfig.rb
105
+ - lib/bandshell/config_store.rb
106
+ - lib/bandshell/application/config.ru
107
+ - lib/bandshell/application/views/main.haml
108
+ - lib/bandshell/application/views/password.haml
109
+ - lib/bandshell/application/views/setup.haml
110
+ - lib/bandshell/application/views/netsettings.haml
111
+ - lib/bandshell/application/views/problem.haml
112
+ - lib/bandshell/application/views/player_status.haml
113
+ - lib/bandshell/application/app.rb
114
+ - lib/bandshell/application/public/network.js
115
+ - lib/bandshell/application/public/stylesheet.css
116
+ - lib/bandshell/application/public/problem.js
117
+ - lib/bandshell/application/public/trollface.png
117
118
  - bin/concerto_configserver
118
- - bin/bandshell-daemon.rb
119
119
  - bin/concerto_netsetup
120
- - bin/bandshell-control.rb
120
+ - bin/bandshelld
121
121
  homepage:
122
122
  licenses: []
123
123
  post_install_message:
@@ -1,11 +0,0 @@
1
- #Daemon control for the Bandshell daemon
2
- #Usage: ruby myserver_control.rb start|stop|restart
3
-
4
- require 'rubygems'
5
- require 'daemons'
6
-
7
- Daemons.run_proc('bandshell-daemon.rb') do
8
- loop do
9
- sleep(5)
10
- end
11
- end
@@ -1,12 +0,0 @@
1
- #!/usr/bin/env ruby
2
- #Requires "daemons" gem
3
-
4
- #Starts the Web App Server & verifies that it is still alive
5
- #Starts the Browser & verifies that it is still alive
6
- #Periodically uses local library methods to check for updates from the server
7
- #Controls screen according to rules downloaded from server
8
-
9
- #Start the daemon loop - everything happens in there
10
- loop do
11
- sleep(5)
12
- end