well, yeah a gemfile is perfect

i just think something called an Ainsfile is cool


On Mon, Mar 24, 2014 at 2:34 PM, Chase James <notifications@github.com>wrote:

> In app.rb:
>
> > -  get '/key' do
> > -    if subnet=config['subnet']
> > -      internal = IPAddr.new(subnet)
> > -      incoming = IPAddr.new(request.ip)
> > -      if internal.include?(incoming)
> > -        key = SecureRandom.hex
> > -        whitelist ||= []
> > -        whitelist.push(key)
> > -        File.open('config.yml', 'w') {|f| f.write(whitelist.to_yaml) }
> > -        key
> > -      end
> > -    end
> > -  end
> > -end
> > +require File.join(File.dirname(__FILE__), 'lib', 'ainsleytwo')
> > +require File.join(File.dirname(__FILE__), 'extensions', 'say')
>
> @nikolaiwarner <https://github.com/nikolaiwarner> what are you expecting
> an Ainsfile to be like? I was thinking extensions could be gems loaded from
> a Gemfile.
>
> --
> Reply to this email directly or view it on GitHub<https://github.com/CirrusMio/ainsleytwo/pull/27/files#r10898872>
> .
>



-- 
*Nick Warner*
CirrusMio
154 Constitution St, Lexington, KY 40507-2111
Phone: 859-523-5213
nick.warner@cirrusmio.com
http://cirrusmio.com/