GithubHelp home page GithubHelp logo

Comments (6)

lukebayes avatar lukebayes commented on June 2, 2024

Sorry for the mixup - you set this value in your .bashrc, .bash_profile or System Registry. The value should point at the outer directory where the Sprouts github repo was cloned. On my system, this points to: ~/Projects/Sprouts, when contains "bundles, sprout, etc"...

This variable is used by features to avoid loading dependent sprout 'gems' while in development.

from project-sprouts.

lancejpollard avatar lancejpollard commented on June 2, 2024

nice, is there a way to automate that in the rakefile?

from project-sprouts.

lancejpollard avatar lancejpollard commented on June 2, 2024

http://github.com/defunkt/rip/blob/master/lib/rip/setup.rb

That's is pretty cool, I'm going to do something like that, see how it works for the env vars. What do you think?

Best,
Lance

from project-sprouts.

lancejpollard avatar lancejpollard commented on June 2, 2024

The last thing I need to learn is how to prompt the user at the terminal..., open files and listen for CMD-W/CMD-S to continue the process, sleeping, multiple threads... lots of stuff :)

Do you per chance know how to capture the CMD-W input when a user closes a textfile window?

  • Lance

from project-sprouts.

lukebayes avatar lukebayes commented on June 2, 2024

Hey Lance... Thanks for pushing through this stuff, I have been meaning to clean that process up - just haven't made the time. Basically, I added the mocha dependency recently with the idea that I'd refactor cross-gem dependencies out of all those packages.

As far as the ENV goes, I've generally just used the ||= operator. It'll basically allow you to assign with a default value, or use what was provided elsewhere with something like:

ENV['SPROUT_HOME'] ||= File.dirname(FILE) + '/../../'

I probably forgot to put that in a place or two.

As far as prompting the user and collecting input, it's the 'gets' command and it's pretty straightforward. Here's an example:

input = $stdin.gets
break if input.nil?
msg = input.chomp!
puts "message: #{msg}"

Capturing when a user closes a text editor seems kind of hard. I imagine there's a way to do it, but it would probably cause more heartache than it's worth. What are you up to with that idea?

The RIP link is a little confusing. I'm not exactly clear about what you're referring to in that file.

from project-sprouts.

lancejpollard avatar lancejpollard commented on June 2, 2024

Thanks for your help Luke, I'm going to work on that prompt stuff.

For the text editor thing, it would be nice if it just opened the ~/.bash_profile with SPROUT_... parsed in but commented out, and it said "Please enter the locations of your Flex SDKs". Just trying to make it so users don't have to know too much to get going :).

I can open the text editor like this:

system("vi #{@profile}") unless
   system("edit #{@profile}") unless
      system("mate #{@profile}")
stdout.flush
$stdin.gets.chomp

...but to continue the process you have to manually press enter in the terminal. I just thought it would be neat to know how to do that, like how svn/git commit messages work. Maybe just doing something like stepping through a bunch of prompts would be easier.

The RIP link was just about parsing the ENV variables into the .bash file. It looked interesting.

I've been working on Bundler all night and it needs a lot of work to work with sprouts, though it looks like a very interesting project. It copies all of the repositories to your application, which isn't what sprouts needs. As for RIP, it seems a bit confusing or maybe just a little advanced for my needs, plus it doesn't work on linux which might be an issue considering I deploy everything on Slicehost.

As for sprouts, I just got it so I can run "rake install:flex4sdk" or "rake install:sprout", and it'll locally install the gem from the git clone directory to wherever your gems are stored. Works well enough, and I added 'environment: SPROUT_FLEX_4_SDK' to the yaml block for the remote_file_target, so it uses my flex sdk.

Using something like bundler would be great, I'm going to look more into that.

Have a good week man,
Lance

from project-sprouts.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.