[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

[ANN] SwitchTower 1.0.0

Jamis Buck

2/19/2006 5:02:00 AM

SwitchTower is a utility that can execute commands in parallel on
multiple servers. It allows you to define tasks, which can include
commands that are executed on the servers. You can also define roles
for your servers, and then specify that certain tasks apply only to
certain roles.

Manual: http://manuals.rubyon...re...
Project: http://rubyforge.org/projects/s...
Download: http://rubyforge.org/frs/?gro...
Install: gem install switchtower

SwitchTower 1.0 fixes several bugs and adds many new features. Here's
a quick run-down of some of the more notable recent changes (in no
particular order):

* Added a :rails_env variable (which defaults to "production"), so
that tasks that employ the RAILS_ENV environment variable can change
its value, if necessary.

* Make UPPERCASE variables work.

* Only chmod the revisions.log file when it is first created, to
avoid problems on some unices where a chmod is not allowed unless you
are the creator of the file.

* Changed the :restart_via variable to a boolean :use_sudo variable.
(Note, this will break your recipes if you are using :restart_via--
please change that to :use_sudo!) Any task that previously used sudo
will now respect the value of this variable.

* Added spinner, cold_deploy, and invoke tasks. The spinner task is
used for starting the application spinner process. The cold_deploy
task is used for deploying your application when a spinner is not
running, and the invoke task is used for executing arbitrary command-
lines on your servers without needing to write a task for it.

* Fixed the strftime format string that was used in the CVS module,
to make it Windows compatible.

* Added three new SCM modules: perforce (submitted by Richard
McMahon), bazaar (submitted by Edd Dumbill), and bazaar-ng (submitted
by Damien Merenne).

* Proc-valued variables can be set much more conveniently now. Just
do "set(:variable) { 'foo' }".

* Added optional :svn_username and :svn_password variables, for
people who's svn credentials differ from their login credentials.

* Added branch support to the CVS module (courtesy of Jeremy
Hinegardner).

* Fixed bug where using "put" to replace a file with a shorter file
would only overwrite the first part of the file.

* Added an extension mechanism so that recipe files may easily import
third-party tasks and methods. (See http://manuals.rubyon...
read/chapter/122)

SwitchTower depends on Net::SSH 1.0.8 (which was also released
tonight, quietly), so when installing SwitchTower be sure to install
that as a dependency. (Note that installing via gems takes care of
this for you, automatically.)

The manual has been updated with the latest changes (though I'm sure
I may have missed some places). Be sure to check out the complete
release notes (http://rubyforge.org/frs/show...
release_id=4327) for all of the juicy details.

Enjoy!

- Jamis


15 Answers

Steven Lumos

2/23/2006 10:55:00 PM

0

marcman

2/10/2010 2:54:00 AM

0

On Feb 9, 9:27 pm, "octoad" <davk...@sonic.net> wrote:
> "booie" <ba_ba_b0...@webtv.net> wrote in message
>
> news:f9729087-d18a-4581-a565-bd5cfdf81dd6@f12g2000yqn.googlegroups.com...
>
> >How much of America does China own?
>
> One hell of a lot.  Its only a matter of time before they own most of what
> passes for economic activity here, mainly because they have so much money
> they don't know what else to do with it.
>
> Besides the massive amount of US government debt that they own (Treasuries,
> Fannie and Freddie bonds, etc) their "private" corporations own huge chunks
> of major "US" companies as well.
>
> And just yesterday I read that China's government itself is buying up chunks
> of "US" corporations through its gigantic sovereign wealth fund.   VISA,
> Apple, Coca Cola, Goodyear, and Morgan Stanley were on the list.  Since the
> fund is a mere 3 years old and is just getting started, its just a matter of
> a few years before China owns majority stakes in a lot of "US" companies.
>

Not to mention Szechuan chicken and beef with brocolli.


> No, this is not a good thing.  But it is inevitable as the US declines into
> eventual economic irrelevance in comparison to the Chinese juggernaut.
>
> O

Steve Terry

2/10/2010 3:15:00 AM

0

On Feb 9, 9:54 pm, marcman <marcmanstud...@gmail.com> wrote:
> On Feb 9, 9:27 pm, "octoad" <davk...@sonic.net> wrote:
>
>
>
>
>
> > "booie" <ba_ba_b0...@webtv.net> wrote in message
>
> >news:f9729087-d18a-4581-a565-bd5cfdf81dd6@f12g2000yqn.googlegroups.com...
>
> > >How much of America does China own?
>
> > One hell of a lot.  Its only a matter of time before they own most of what
> > passes for economic activity here, mainly because they have so much money
> > they don't know what else to do with it.
>
> > Besides the massive amount of US government debt that they own (Treasuries,
> > Fannie and Freddie bonds, etc) their "private" corporations own huge chunks
> > of major "US" companies as well.
>
> > And just yesterday I read that China's government itself is buying up chunks
> > of "US" corporations through its gigantic sovereign wealth fund.   VISA,
> > Apple, Coca Cola, Goodyear, and Morgan Stanley were on the list.  Since the
> > fund is a mere 3 years old and is just getting started, its just a matter of
> > a few years before China owns majority stakes in a lot of "US" companies.
>
> Not to mention Szechuan chicken and beef with brocolli.

LOL! General Tso and his forces are already on the ground here in the
states awaiting the word to assume complete control.

Garry the Island Boy

2/10/2010 8:41:00 PM

0

On Feb 10, 12:09 pm, "octoad" <davk...@sonic.net> wrote:
> "Garry the Island Boy" <garry...@yahoo.com> wrote in messagenews:0624569e-b813-47d5-87b8-43a89087a9d6@c4g2000yqa.googlegroups.com...
> On Feb 9, 11:08 pm, "octoad" <davk...@sonic.net> wrote:
>
>
>
> > "Garry the Island Boy" <garry...@yahoo.com> wrote in
> > messagenews:4472b888-ae84-47b4-aaad-1c9f4a983842@a32g2000yqm.googlegroups.com...
> > On Feb 9, 10:27 pm, "octoad" <davk...@sonic.net> wrote:
>
> > > "booie" <ba_ba_b0...@webtv.net> wrote in message
>
> > >news:f9729087-d18a-4581-a565-bd5cfdf81dd6@f12g2000yqn.googlegroups.com....
>
> > > >How much of America does China own?
>
> > > One hell of a lot. Its only a matter of time before they own most of
> > > what
> > > passes for economic activity here, mainly because they have so much
> > > money
> > > they don't know what else to do with it.
>
> > > Besides the massive amount of US government debt that they own
> > > (Treasuries,
> > > Fannie and Freddie bonds, etc) their "private" corporations own huge
> > > chunks
> > > of major "US" companies as well.
>
> > > And just yesterday I read that China's government itself is buying up
> > > chunks
> > > of "US" corporations through its gigantic sovereign wealth fund. VISA,
> > > Apple, Coca Cola, Goodyear, and Morgan Stanley were on the list. Since
> > > the
> > > fund is a mere 3 years old and is just getting started, its just a
> > > matter
> > > of
> > > a few years before China owns majority stakes in a lot of "US"
> > > companies.
>
> > > No, this is not a good thing. But it is inevitable as the US declines
> > > into
> > > eventual economic irrelevance in comparison to the Chinese juggernaut.
>
> > > O
>
> > And now, these multi-national corporations can influence our elections
> > through "free speech." Face it, the GOP and it's policies have
> > successfully handed the USA over to monarchies, socialist and
> > communist nations all with %20 of the support of our country. A coup
> > took place over two 2 term presidencies right in front of our eyes.
>
> > *****************************************************************
>
> > Well, the rise of China and the decline of the US was/is inevitable and is
> > part of a long term trend, with or without horrible administrations and
> > bad
> > court decisions.
>
> > Our economy is aging and makes less and less stuff as time goes on, our
> > infrastructure is old and decaying, our financial system is a house of
> > cards, our political system is ossified and unable to deal with large
> > problems successfully, our education system is beyond repair, and our
> > people
> > have become increasingly lazy, spoiled, and just plain stupid.
>
> > Meanwhile, in China, the economy is new, shiny and exploding, they have
> > the
> > advantage of building ultra modern infrastructure from scratch, their
> > financial system is cool, calm, and collected, their political system
> > turns
> > on a dime to successfully address just about any economic problem (and
> > they
> > don't allow political dissent), their education system is advancing at
> > amazing rates (especially their higher education system), and their people
> > are industrious, work their asses off, and have become increasingly
> > creative
> > and entrepeneurial.
>
> > It really doesn't matter what party is in power in the US when it comes to
> > looking at our long term decline and China's rise. Some things happen no
> > matter what US politicians do or don't do about them, and this is one of
> > them.
>
> > O
>
> And we are the one who helped it along. THE WORLD AFTER AMERICA was on
> this subject. Our spreading of capitalism and democracy has led to our
> fall from being the leading industrial power.
>
> *********************************************************************
>
> Well, I'm sure you realize its far more complicated than that.   Far cheaper
> labor in China and elsewhere has probably been the main driver of the US
> industrial decline, coupled with the increasing US focus on attempting to
> create wealth out of thin air by engaging in non-value producing financial
> shenanigans.
>
> O

Correct, but HP suffered some problems with out-sourcing, mainly,
after they spent time and money training and educating the Third World
workers, the workers left for better jobs at other manufacturers. . .

G.

Garry the Island Boy

2/10/2010 9:52:00 PM

0

On Feb 10, 5:01 pm, "octoad" <davk...@sonic.net> wrote:
> "Garry the Island Boy" <garry...@yahoo.com> wrote in messagenews:7f73aa49-321f-49c4-b23c-6831f72f3a2b@3g2000yqn.googlegroups.com...
> On Feb 10, 12:09 pm, "octoad" <davk...@sonic.net> wrote:
>
>
>
> > "Garry the Island Boy" <garry...@yahoo.com> wrote in
> > messagenews:0624569e-b813-47d5-87b8-43a89087a9d6@c4g2000yqa.googlegroups.com...
> > On Feb 9, 11:08 pm, "octoad" <davk...@sonic.net> wrote:
>
> > > "Garry the Island Boy" <garry...@yahoo.com> wrote in
> > > messagenews:4472b888-ae84-47b4-aaad-1c9f4a983842@a32g2000yqm.googlegroups.com...
> > > On Feb 9, 10:27 pm, "octoad" <davk...@sonic.net> wrote:
>
> > > > "booie" <ba_ba_b0...@webtv.net> wrote in message
>
> > > >news:f9729087-d18a-4581-a565-bd5cfdf81dd6@f12g2000yqn.googlegroups.com...
>
> > > > >How much of America does China own?
>
> > > > One hell of a lot. Its only a matter of time before they own most of
> > > > what
> > > > passes for economic activity here, mainly because they have so much
> > > > money
> > > > they don't know what else to do with it.
>
> > > > Besides the massive amount of US government debt that they own
> > > > (Treasuries,
> > > > Fannie and Freddie bonds, etc) their "private" corporations own huge
> > > > chunks
> > > > of major "US" companies as well.
>
> > > > And just yesterday I read that China's government itself is buying up
> > > > chunks
> > > > of "US" corporations through its gigantic sovereign wealth fund. VISA,
> > > > Apple, Coca Cola, Goodyear, and Morgan Stanley were on the list. Since
> > > > the
> > > > fund is a mere 3 years old and is just getting started, its just a
> > > > matter
> > > > of
> > > > a few years before China owns majority stakes in a lot of "US"
> > > > companies.
>
> > > > No, this is not a good thing. But it is inevitable as the US declines
> > > > into
> > > > eventual economic irrelevance in comparison to the Chinese juggernaut.
>
> > > > O
>
> > > And now, these multi-national corporations can influence our elections
> > > through "free speech." Face it, the GOP and it's policies have
> > > successfully handed the USA over to monarchies, socialist and
> > > communist nations all with %20 of the support of our country. A coup
> > > took place over two 2 term presidencies right in front of our eyes.
>
> > > *****************************************************************
>
> > > Well, the rise of China and the decline of the US was/is inevitable and
> > > is
> > > part of a long term trend, with or without horrible administrations and
> > > bad
> > > court decisions.
>
> > > Our economy is aging and makes less and less stuff as time goes on, our
> > > infrastructure is old and decaying, our financial system is a house of
> > > cards, our political system is ossified and unable to deal with large
> > > problems successfully, our education system is beyond repair, and our
> > > people
> > > have become increasingly lazy, spoiled, and just plain stupid.
>
> > > Meanwhile, in China, the economy is new, shiny and exploding, they have
> > > the
> > > advantage of building ultra modern infrastructure from scratch, their
> > > financial system is cool, calm, and collected, their political system
> > > turns
> > > on a dime to successfully address just about any economic problem (and
> > > they
> > > don't allow political dissent), their education system is advancing at
> > > amazing rates (especially their higher education system), and their
> > > people
> > > are industrious, work their asses off, and have become increasingly
> > > creative
> > > and entrepeneurial.
>
> > > It really doesn't matter what party is in power in the US when it comes
> > > to
> > > looking at our long term decline and China's rise. Some things happen no
> > > matter what US politicians do or don't do about them, and this is one of
> > > them.
>
> > > O
>
> > And we are the one who helped it along. THE WORLD AFTER AMERICA was on
> > this subject. Our spreading of capitalism and democracy has led to our
> > fall from being the leading industrial power.
>
> > *********************************************************************
>
> > Well, I'm sure you realize its far more complicated than that. Far cheaper
> > labor in China and elsewhere has probably been the main driver of the US
> > industrial decline, coupled with the increasing US focus on attempting to
> > create wealth out of thin air by engaging in non-value producing financial
> > shenanigans.
>
> > O
>
> Correct, but HP suffered some problems with out-sourcing, mainly,
> after they spent time and money training and educating the Third World
> workers, the workers left for better jobs at other manufacturers. . .
>
> **********************************************************************
>
> Of course there are problems at any number of companies as they try to flee
> the US and move everything elsewhere.
>
> Hmm.  Was Carly Fiorina the CEO during that time?  As I recall she ran that
> outfit into the ground before the current guy brought it back to life.
>
> Of course now she's touting her brilliant business experience as she runs
> for Senate in California............
>
> With her and that moron Meg Whitman, it seems that even that hotbed of
> innovation, Silicon Valley, is better at creating billionaire power tripping
> politician wannabes floating around under golden parachutes than it is at
> creating new technologies and good paying jobs.
>
> O

No, Carly was not involved and it was more accurately Agilent
Technologies at the time.

G.

3jane.

2/11/2010 3:59:00 PM

0

> China and Russia are also not natural allies,
> remember how the Russkis reacted when China taught Vietnam a lesson with a
> temporary invasion?  Japan and other Asian nations are watching China's
> military buildup with concern, there will come a point where they will
> respond in kind.  Systemic corruption and horrific pollution are also going
> to be huge issues for a long time to come.  And so on, China has plenty of
> problems to deal with down the road, throw in something unexpected like a
> huge natural disaster or a power struggle in the leadership and you never
> know what's going to do down.

Snipped a bunch of DGD and all of Octoad, which I know Ken will
crucify me for, but tough shit. Not that it matters much anymore, but
I think my old man would have agreed with the above-and the snipped
parts, all of it, China is going to have some big time trouble
relatively soon. But then they can always bring in the army.

3jane.

2/11/2010 4:53:00 PM

0

> The US is so far behind China when it comes to education, that it is
> ridiculous. And kids there - they learn in unheated classrooms with
> 60-80 kids or more, and ONE teacher. They sit quietly and they LEARN!
> They are taught to respect the teacher, and misbehavior will get them
> thrown out of school.

Please explain why every single one (OK, the vast majority of) of the
most intelligent Chinese students comes to the US to study, gets an MS
or PHD and then stays here. I'm not talking out my ass, I've worked
with hundreds, perhaps thousands of them. They could live in
Shanghai, they could live in Los Gatos or they could live in Vancouver.

Neil X

2/11/2010 5:56:00 PM

0

> Octoad wrote:
>
> Our higher education system is becoming increasingly expensive and is
> getting farther out of reach for more and more students.


You keep *ssaying* stuff like this, but it isn't true. The US
graduates a far, far greater percentage of our population from college
now than we did in the 90s, 80s, 70s, 60s, etc. The numbers go up
every year. I know you like to be pessimistic, but what you are
writing thoughout these posts has only the loosest relationship to
reality.


> Meanwhile in China, an entirely brand spanking new higher education system
> is sprouting from scratch and is already churning out more graduates and
> grad school students in science and engineering than the US system does.


And what is the quality of those schools? We regularly got "PhDs"
from China in the labs I worked in whil I was a grad student or
postdoc, and their education level was, uniformly, less than the
average BA from an American school.


> Americans barely work at all when compared to the hours the average Chinese
> puts in each week.  We simply cannot compete with people willing to work
> their asses off for pennies on the dollar for 10-12 hours a day, 6 days a
> week.  Especially when there are many times more of them than there are of
> us, and when they are just as well educated as us.


The data says that US workers work more hours, FAR more hours, than
workers in any other developed country. I haven't seen data to
indicate the average Chinese workload compared to the US. Have you?


> Instead of keeping your head in the sand, you really should start paying
> attention.  The US is on its way down, China is on its way up, and nothing
> anyone in this country can or will do will change that long term dynamic.


That my or may not be the case, but making stuff up to make you point
is less than convincing.

Peace,
Neil x.

Neil X

2/11/2010 5:58:00 PM

0

On Feb 11, 10:59 am, "3jane." <q3j...@yahoo.com> wrote:
> > China and Russia are also not natural allies,
> > remember how the Russkis reacted when China taught Vietnam a lesson with a
> > temporary invasion?  Japan and other Asian nations are watching China's
> > military buildup with concern, there will come a point where they will
> > respond in kind.  Systemic corruption and horrific pollution are also going
> > to be huge issues for a long time to come.  And so on, China has plenty of
> > problems to deal with down the road, throw in something unexpected like a
> > huge natural disaster or a power struggle in the leadership and you never
> > know what's going to do down.
>
> Snipped a bunch of DGD and all of Octoad, which I know Ken will
> crucify me for, but tough shit.  Not that it matters much anymore, but
> I think my old man would have agreed with the above-and the snipped
> parts, all of it, China is going to have some big time trouble
> relatively soon.  But then they can always bring in the army.


I'm pretty sure Ken's problem isn't that you snip out the irrelevant
prose, it's that you don't bother to keep the names of the people who
wrote what you keep. Which is a fair criticism (though definitely not
in the way it was delivered by Ken.) When I see a bunch of prose
quoted in a post, it helps to know who wrote it.

Peace,
Neil X.

3jane.

2/11/2010 6:04:00 PM

0

> The numbers who  stay here pale in comparison to those who go back, and many
> who are here are getting experience before they ultimately go back
> themselves.
>
> Keep in mind there is one HELL OF A LOT of Chinese!

Yeah, I gotta say, I have a pretty good hold on those numbers. In
many ways I think they have a more dignifiied, respectful society than
the good ol' USA. 'Course they are a bunch of murdering scum, but
whatever...they deserve nothing more or less than to be run over by
tanks in TAM Square. Many times.