Skip to content

Commit

Permalink
Fix typos (#2151)
Browse files Browse the repository at this point in the history
Found via `codespell -S ./docs/assets -L rouge,reenable`
  • Loading branch information
kianmeng committed Mar 1, 2024
1 parent 1e36f5d commit 46193a8
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion DEVELOPMENT.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Everyone can help improve Capistrano. There are ways to contribute even if you a

## Contributing documentation

Improvements and additions to Capistrano's documentation are very much appreciated. The official documention is stored in the `docs/` directory as Markdown files. These files are used to automatically generate the [capistranorb.com](http://capistranorb.com/) website, which is hosted by GitHub Pages. Feel free to make changes to this documentation as you see fit. Before opening a pull request, make sure your documentation renders correctly by previewing the website in your local environment. Refer to [docs/README.md][] for instructions.
Improvements and additions to Capistrano's documentation are very much appreciated. The official documentation is stored in the `docs/` directory as Markdown files. These files are used to automatically generate the [capistranorb.com](http://capistranorb.com/) website, which is hosted by GitHub Pages. Feel free to make changes to this documentation as you see fit. Before opening a pull request, make sure your documentation renders correctly by previewing the website in your local environment. Refer to [docs/README.md][] for instructions.

## Setting up your development environment

Expand Down
12 changes: 6 additions & 6 deletions docs/_posts/2013-06-01-release-announcement.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ exist in version three, ***yet***.
it needs better `readline` support, and some more controls around what to do
when things go badly on some servers, but not others.
* **Cold Deploy** The `cap deploy:cold` is a really old legacy component,
orignally from the days of the `script/spinner` where deploying cold
originally from the days of the `script/spinner` where deploying cold
(starting workers that weren't running), and deploying a *warm* system were
different (restarting existing worker pools, which wasn't fun!) By and large
these things have gone away, and it's time `deploy:cold` went away. It's
Expand All @@ -90,7 +90,7 @@ features are awesome.

#### Rake Integration

We have moved away from our own DSL implemenation to implement Capistrano as a
We have moved away from our own DSL implementation to implement Capistrano as a
*Rake* application.

Rake has always supported being sub-classed, so to speak as a
Expand Down Expand Up @@ -167,7 +167,7 @@ this:
{% endhighlight %}

This always felt a little unclean, and indeed it's a hack that was originally
implemeted to facilitate rolling deployments at a large German firm by a
implemented to facilitate rolling deployments at a large German firm by a
couple of freelancers who were consulting with them. (Hint, one of those guys
went on to found Travis-CI!)

Expand Down Expand Up @@ -347,7 +347,7 @@ In Capistrano v3 this looks more like this:
{% endhighlight %}

Again, with other examples this format is a little longer, but much more
expressive, and all the nightmare of shell escaping is handled interally for
expressive, and all the nightmare of shell escaping is handled internally for
you, environmental variables are capitalised and applied at the correct point
(i.e between the `cd` and `rake` calls in this case).

Expand All @@ -363,7 +363,7 @@ consulted.

This magic led to times when people were not recognising that magic variables
were even being used. The magic variable system of Capistrano v2 did also
include a way to `fetch(:some_variable, 'with a default value')` incase the
include a way to `fetch(:some_variable, 'with a default value')` in case the
variable might not be set already, but it wasn't widely used, and more often
than not people just used things like `latest_release_directory` never knowing
that behind the scenes an exception was raised, then rescued, and that
Expand Down Expand Up @@ -566,7 +566,7 @@ and such like, then it's required to `require` the support files.
#### Rake DSL Is Additive

In Capistrano v2 if you re-define a task then it replaces the original
implemetation, this has been used by people to replace internal tasks
implementation, this has been used by people to replace internal tasks
piecemeal with their own implementations

#### `sudo` Behaviour
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ task :ditty do

on roles(:app) do
# We can set environmental variables for the duration of a block
# and move the process into a directoy, executing arbitrary tasks
# and move the process into a directory, executing arbitrary tasks
# such as letting Rails do some heavy lifting.
with({:rails_env => :production}) do
within('/var/www/my/rails/app') do
Expand Down
2 changes: 1 addition & 1 deletion docs/documentation/upgrading/index.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ layout: default
Update your Gemfile: `gem 'capistrano', '~> 3.0', require: false, group: :development`


If you deploy Rails, you wil also need `capistrano-rails` and `capistrano-bundler` gems (Rails and Bundler integrations were moved out from Capistrano 3).
If you deploy Rails, you will also need `capistrano-rails` and `capistrano-bundler` gems (Rails and Bundler integrations were moved out from Capistrano 3).

```ruby
group :development do
Expand Down
2 changes: 1 addition & 1 deletion spec/integration/dsl_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@
end
end

context "when the attribute `primary` is explicity set" do
context "when the attribute `primary` is explicitly set" do
subject { dsl.primary(:app) }
it "returns the servers" do
expect(subject.hostname).to eq "example4.com"
Expand Down
4 changes: 2 additions & 2 deletions spec/lib/capistrano/dsl_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ class DummyDSL

describe "#invoke" do
context "reinvoking" do
it "will not reenable invoking task", capture_io: true do
it "will not re-enable invoking task", capture_io: true do
counter = 0

Rake::Task.define_task("A") do
Expand All @@ -98,7 +98,7 @@ class DummyDSL

describe "#invoke!" do
context "reinvoking" do
it "will reenable invoking task", capture_io: true do
it "will re-enable invoking task", capture_io: true do
counter = 0

Rake::Task.define_task("C") do
Expand Down

0 comments on commit 46193a8

Please sign in to comment.